ok, so i can't tell if this is a server issue or what. i've got an htaccess file like so:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/main/index/$1 [L]
RewriteRule ^ajax/(.*)$ /index.php?/main/ajax/$1 [L]
RewriteRule ^backend.php/(.*)$ /backend.php?/$1 [L]
# 301 redirects
Redirect 301 /backup.php http://www.example.com/backup/
Redirect 301 /document.php http://www.example.com/document/
Redirect 301 /contact.php http://www.example.com/contact/
Redirect 301 /links.php http://www.example.com/links/
Redirect 301 /jobs.php http://www.example.com/jobs/
the only issue i have is with my 301 redirects. instead of
example.com/backup.php going to example.com/backup/ it instead sends it to example.com/backup/?/main/index/backup.php.
this does route the page properly. meaning i get the proper html returned but the url is ugly. i should say that this IS done in code igniter and that i'm routing EVERYTHING to the main controller's method index which makes backup, document, contact, etc the first argument of the index method. this may seem odd - and also may have no relevance - but i need it to be this way. anyone have any suggestions on how to get the redirected urls clean?