Hi,
In trying to remove the index.php file from my URL I’m using this .htaccess file
# -FrontPage-
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthUserFile /home/macrog2/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/macrog2/public_html/_vti_pvt/service.grp
ErrorDocument 404 /404.shtml
AddHandler server-parsed htm
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 67.195.51.156
deny from 67.134.151.140
deny from 195.161.119.84
AuthName macrogolf.com
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
AddType audio/ogg .oga
AddType audio/ogg .ogg
AddType audio/mpeg .mp3
AddType audio/mp4 .m4a
AddType audio/wav .wav
AddType video/mp4 .mp4 .m4v
AddType video/ogg .ogv
AddType video/webm .webm
<IfModule mod_rewrite.c>
# Enable Rewrite Engine
#———————————————
RewriteEngine On
RewriteBase /
# Redirect index.php Requests
#———————————————
RewriteCond %{THE_REQUEST} ^GET.*index\.php? [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php?/*(.*) /$1$2 [R=301,L]
# Standard ExpressionEngine Rewrite
#———————————————
RewriteCond $1 !\.(css|js|gif|jpe?g|png|robots\.txt) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
Everything above this line “AddType audio/ogg .oga” was created by someone else.
When I add everything between <IfModule></IfModule> the index.php goes away leaving a nice clean ULR.
The problem is my main nav bar gets messed up. Like there is no CSS attached to it.
Any ideas?
Thanks, G