Forum Moderators: phranque
<IfModule mod_php4.c>
php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
php_flag allow_url_include Off
php_flag register_globals Off
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^XBOX/ http://www.example.com/xbox/ [R=301,L]
---------------
http://www.example.com/XBox/index.php
Will go to
http://www.example.com/xbox/index.php
But
http://www.example.com/XBox/ <-- still says page not found.
I need it to go to
http://www.example.com/xbox/
Thanks.
Note:
RewriteRule ^XBox/ http://www.example.com/xbox/ [R=301,L] <-- this doesn't work neither.
Options +FollowSymLinks -MultiViews
RewriteEngine on
#
RewriteCond %{REQUEST_URI} !^/xbox/$
RewriteRule ^XBOX/$ http://www.example.com/xbox/ [NC,R=301,L]
If you want to redirect /XboX/<any-path> to /xbox/<any-path>, then you'll need to back-reference the additional path-part and use:
Options +FollowSymLinks -MultiViews
RewriteEngine on
#
RewriteCond %{REQUEST_URI} !^/xbox/
RewriteRule ^XBOX/(.*)$ http://www.example.com/xbox/$1 [NC,R=301,L]