Forum Moderators: mack
All my pages end with a .htm extension except for the blog which has a index.php extension. However the blog resides within the public_html directory and works fine as well. I deleted my pages in the public_html directory and re-uploaded all files; but still I'am getting an error when i directly type in my domain name.
Please help me as i'am losing a lot of traffic because of this
----------------
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName www.example.com
AuthUserFile /home/me/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/me/public_html/_vti_pvt/service.grp
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^http://mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://mysite.com$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.mysite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.mysite.com$ [NC]
RewriteCond %{HTTP_REFERER}!^http://mysite.com/blog/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://mysite.com/blog$ [NC]
RedirectMatch temp ^/$ http://
[edited by: jatar_k at 6:28 pm (utc) on Dec. 28, 2005]
[edit reason] examplified url [/edit]
--------------
RedirectMatch temp ^/$ [mysite.com...]
------------------------
Now it works fine, is this ok or only a temporary solution?
You have two section of allow/deny code, and only one would ever be needed (or used). You can safely delete or comment-out the first Order/Allow/Deny section.
[Added] Use the correct DirectoryIndex method. You have just put an external 302 redirect on your home page, and that might be disastrous for your home page's search ranking. [/Added]
Jim
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*DirectoryIndex index.html index.htm index.php
order deny,allow
deny from all
allow from all
AuthName www.[i]example.com[/i]
AuthUserFile /home/me/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/me/public_html/_vti_pvt/service.grp
The code that followed this section was either truncated or malformed... I'm not sure which.
Jim