.htaccess and mod_rewrite issue - Need help.
voyager10000 - March 24, 2008 - 19:09
Hey fellow Drupallites,
I performed a fresh install of Drupal 5.7 for a new site today.
While uploading my files I stupidly overwrote my .htaccess file. It only had a few lines in it, but cannot remember them. The problem is now I have an addon domain and a forum in a subdirectory (I am going to integrate it into Drupal) thhat won't load, I think there were rewrite rules and conditions there that are now gone.
Does anyone know what I should put back into my .htaccess file to bypass Drupal's settings?
Any help would be greatly appreciated.
Thanks in advance,
Mike

This may
This may help:
http://drupal.org/node/30334
Thanks rusty, I couldn't get
Thanks rusty,
I couldn't get it to work. Could you give me a syntax example? I am very new (Just started today) at the .htaccess and mod_rewrite game.
I checked the .htaccess file of another Drupal site I have and it was identical, so no help there.
If the other Drupal site's
If the other Drupal site's .htaccess was identical and that site works, then perhaps the problem is elsewhere.
- Is the other site on the same server?
- Does the other site also have other applications in subdirectories and they work?
For any more specific ideas or any syntax examples, you should describe the problem with more details.
- What are your URLs like and to which directories do they point?
- What problem exactly do you have? Are the subsites giving you "404 - Page Not Found" errors or permission errors or something else? If they are giving you "404" errors, are they Drupal-themed error pages or Apache error pages?
Besides the advice in the Handbook page, something else you could try is to replace the 2 lines near the end of the .htaccess file
RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d
with this
RewriteCond %{REQUEST_FILENAME} !-U