MY Blog & Forum NOT working after .htaccess re-direct code. HELP!
I have been fighting with getting proper redirect code to point all 'non-www' versions of my website to 'www'.
I used rediect code in the .htaccess file to accomplish that, HOWEVER, now my WP blog which is set up like this http://www.examplesite.com/blog will NOT work! All it does it show a listing of the directory!? It shows all the files and that is it.
Here is the redirect code I am currently using in the root directory of the main website.
------------------------------------------------------------------------
DirectoryIndex index.htm
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.examplesite\.com$ [NC]
RewriteRule ^(.*)$ http://www.examplesite.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} /index\.htm [NC]
RewriteRule ^(.*/)?index\.htm$ /$1 [R=301,L]
IndexIgnore *
------------------------------------------------------------------------
Also, the same is true for my Forum which is also under its own directory, it just shows the files under that directory and no longer shows the forum?
What have a I done? How can I change it back?
I appreciate the help...
Thanks..
-
2WDHost -
Thanks
{{ DiscussionBoard.errors[5286021].message }} -
-
2WDHost -
Thanks
{{ DiscussionBoard.errors[5286056].message }} -
-
co -
Thanks
{{ DiscussionBoard.errors[5295492].message }} -
-
tattooking -
Thanks
{{ DiscussionBoard.errors[5335830].message }} -