Hey whats up
I am trying to get my CMS to redirect from the http:// to
http://www but the htaccess is having a hard time.
Here is my code for it (I don't know much about htaccess)
Code:
Options FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
RewriteCond %{HTTP_HOST} ^someabsurdsite.com
RewriteRule (.*) http://www.someabsurdsite.com/$1 [R=301,L]
Everything goes fine if you are browsing around on the www version, but if you try to go to
http://someabsurdsite.com/thisdirectory you get taken to the url
http://www.someabsurdsite.com/index.php/thisdirectory and it says "No input file specifed"
I am thinking this has to do with (this is me just making observations about similar code)
Code:
RewriteRule (.*) index.php
and
Code:
RewriteRule (.*) http://www.someabsurdsite.com/$1 [R=301,L]
It looks like similar rules with the (.*) stuff
Could anyone help me or is there not enough info to get a conclusion out of?
Thanks a lot
John