Jump to content

Help with .htaccess - mod_rewrite destroying


Anders Moen

Recommended Posts

Actually, it doesn't exactly destroying, but when I use this code in the .htaccess file

RewriteEngine onRewriteRule ^([A-Za-z0-9-]+)/?$ index.php?page=$1 [L]

I can't go to a subdomain without getting 404 error...If I remove that code from the .htaccess, it works fine to get to the subdomain

Link to comment
Share on other sites

I found out the error :)I got some help at Norsk Webforum (Norwegian), and they said I had to make .htaccess files in the subdomains where it says "RewriteEngine off" without quotes, and then it worked.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...