Jump to content



Recommended Posts

Hello everyone, I have just completed migrating from GoDaddy to DreamHost and I must say, I am very impressed with all the features. However my site is acting slightly differently, and I wanted to ask you a few questions about apache server setup,I have a .htaccess file for mod_rewrite, but it's not doing the same as it did on the GoDaddy server, so I think some other default setup on DreamHost server is causing it to act differently, for example, I want to redirect my domain.com to www.domain.comon GoDaddy this was fine, but on DreamHost, I am getting the index.php added on the end of the url, Also I have a rewrite for: www.domain.com/somesection => www.domain.com/somesection.htmland on DreamHost, it redirects to this file and displays the extension, there are a few other things similar, what setting should I override to avoid this behavior ?here is an except from my htaccess:

Options -MultiviewsOptions +FollowSymlinksRewriteEngine onRewriteCond %{HTTP_HOST} ^http://mydomain.com$RewriteRule /?(.*) http://www.mydomain.com/$1 [R=301,L]RewriteRule ^(.*)\.html$ http://www.mydomain..com/$1.php [nc]RewriteRule ^somesection/$ /somesection [R]RewriteRule ^somesection$ /somesection.html

It looks like the problem is this line:

RewriteRule ^(.*)\.html$ http://www.mydomain..com/$1.php [nc]

It seems to be redirecting me to the php file rather then just loading it and leaving .html in the url bar...

Edited by djp
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...