djp1988 Posted March 13, 2010 Share Posted March 13, 2010 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... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.