You are here: FrontPage? « HTML « IT news, forums, messages
FrontPage?

Posted by WD10 on 09/14/05 02:46

I am trying to set up a site so that the
http://my_site.com version of the domain redirects to the
http://www.my_site.com version. Normally, the following two lines in
the .htaccess file work for me, but they aren't working in this case. I'm
not sure what all those lines in the file below mean but I see word
"FrontPage"... After I fix this I have 22 pages of FrontPage HTML to fix :(

Any ideas why the first two lines aren't working?

Thanks



# Sends all requests to www version of domain name

RewriteCond %{HTTP_HOST} ^my_site.com
RewriteRule (.*) http://www.my_site.com/$1 [R=301,L]

# Everything below this line is the original htaccess file

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.my_site.com
AuthUserFile /home/my_folder/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/my_folder/public_html/_vti_pvt/service.grp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация