Forum Moderators: phranque

Message Too Old, No Replies

htaccess suddenly not working

         

Philosopher

12:00 am on Jan 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So a while back I set up a few sites using mod_rewrite to normalize the URLs. Everything worked great and I let them go on autopilot while working on other projects.

Today I happened to pull up one of those sites and realized that suddenly the site isn't functioning properly. No hacks or anything like that it's just as if the URLs aren't getting rewritten properly to pass the needed query strings to the db.

Anyway, here is a part of the htaccess file.

RewriteCond %{HTTP_HOST}!^www\.domain-domain\.net [NC]
RewriteCond %{HTTP_HOST}!^domain-domain\.net [NC]
RewriteCond %{HTTP_HOST}!^255\.255\.255\.255
RewriteCond %{REQUEST_FILENAME}!test2(.+) [NC]
RewriteRule ^(.+) %{HTTP_HOST}/$1 [C]
RewriteRule ^(.+)\.domain-domain\.net/ test2.php?c=$1 [L]

I'm definitely no apache expert, but the above was working properly in all instances until sometime in the past month I would say.

Any thoughts or help would be greatly appreciated.

mack

12:56 am on Jan 25, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



It may be worth dropping an email to your hosting company. Sometimes hosts do not allow mod_rewrite. They may have changed their server configuration to block it.

Mack.