mod.rewrite rule: http://www.site.com to http://www.site.com/folder/ 301
More mod.rewrite examples for your google needs,
google will love you if you use this instead of header/location in php or meta-refresh in html.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\..site\.com
RewriteRule ^(.*)$ http://www.site.com/folder/$1 [L,R=301]
thnx for this – i’m a noob but
do you know how to make it go from:
http://www.site.com/ to http://www.site.com/index.php
it would be greatly appreciated!
usually that is done by simply putting a index.php -file in your html and /or www folder.
delete or rename any other index-files such as index.html / htm.
if that doesnt work, comment again and i*ll find a fix, jz