Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Major Mod rewrite problem


illusionist - 9:38 pm on Jul 13, 2005 (gmt 0)


I had hired a freelance programmer to do a mod rewrite on my website. I recently came across a bug caused due to the mod rewrite, whenever i upload a new file to the server and try accessing its url ( www.mysite.com/filename.htm) it gives me a 404 error! I cannot contact the person who originaly did the mod rewrite.

Below are the conetns of the .htaccess file

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

order deny,allow
deny from all
allow from all

order deny,allow
deny from all

AuthName www.site.com
AuthUserFile /home/site/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/site/public_html/_vti_pvt/service.grp

# Rewrite Rules
#RewriteEngineon
#RewriteRule^xredirect:(.+)/cgi-bin/redirect.pl?name=$1

#IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
AddType application/x-httpd-php .xml

RewriteEngine On

#RewriteRule ^/forums/(.*) [forums.site.com...] [L,R=301]

RewriteCond %{HTTP_HOST} ^site\.com$
RewriteRule ^(.*) [site.com...] [L,R=301]

#RewriteCond %{REQUEST_URI}!forums/
RewriteCond %{REQUEST_URI}!images/
RewriteCond %{REQUEST_URI}!admincp/
RewriteCond %{REQUEST_URI}!ad/
RewriteCond %{REQUEST_URI}!testibp/
RewriteCond %{REQUEST_URI}!ads/

Can anyone please help me?

[edited by: jdMorgan at 2:24 pm (utc) on July 14, 2005]
[edit reason] Disabled smileys in code. [/edit]


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