Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Please explain this htaccess file


Ivanna - 7:32 pm on Oct 31, 2012 (gmt 0)


So, my htaccess should be like this, yes?

# -FrontPage-

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

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

# Redirect index.php and .ph or html and .htm to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(php|html?)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(php|html?)$ http://www.MyDomainName.com/$1 [R=301,L]

# Redirect non-canonical to www
RewriteCond %{HTTP_HOST} !^(www\.MyDomainName\.com)?$
RewriteRule (.*) http://www.MyDomainName.com/$1 [R=301,L]

]



thank you
Ivanna


Thread source:: http://www.webmasterworld.com/apache/4514229.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com