differences between rules in .htaccess and httpd.conf?

Discuss practical ways rearrange URLs using mod_rewrite.

Postby Guest » Fri May 31, 2002 12:05 pm

I want to use a PHP content management software that needs rewrite rules in httpd.conf. It does not work correctly if the rules are in the .htaccess file (most pages work but not all, so the rules themselves are correct).

Is anybody aware of subtle differences between the .htaccess and the httpd.conf configuration method?

Postby Brett » Sat Jun 01, 2002 6:49 am

Some commands, such as RewriteLog and RewriteMap, are not available in .htaccess. See this documentation and note that for each command, the "context" shows whether or not you can use it in .htaccess.

There may be other, more subtle differences, but I don't know anything about them.
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm
Location: yohost.com

Postby Guest » Wed Jun 19, 2002 1:03 am

If you read carefully the documentation, you'll know that using an .htaccess file will create a "chicken and egg" problem, slowing down the server cosiderably by spawning multiple otherwise unnecessary child processes.

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 3 guests