s mysite/index.htm to mysite.com

New to mod_rewrite? This is a good place to start.

s mysite/index.htm to mysite.com

Postby mortgage-pro-seo » Thu Mar 16, 2006 2:29 pm

I need to direct requests for mysite/index.htm to mysite.com

Code: Select all
Here is my current .htaccess
AddType application/x-httpd-php .php .htm .html
ErrorDocument 404 mysite.com/sitemap.htm
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]


I have tried adding this, with no success...

Code: Select all
redirect 301 /index.htm http://www.mysite.com
mortgage-pro-seo
 
Posts: 3
Joined: Wed Jan 12, 2005 2:03 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

cron