In method #1, the rewrite rules will not work if …

Friday, 29th March 2024

Comment on Disable Apache HTTP TRACE method to improve Apache security by Chad Cloman.

In method #1, the rewrite rules will not work if they are put into the .htaccess file. They must go into httpd.conf.

Chad Cloman Also Commented

Disable Apache HTTP TRACE method to improve Apache security
I definitely have the rewrite engine enabled, because the same rule works for the TRACK request method. I admit that it could be the version of Apache or the OS, but it’s from my hosting company, and I don’t have access to that information.

While researching this, I’ve found many accounts of people who implemented the .htaccess rules and found that they didn’t work. I also found several instances where people “in the know” said that the rewrite directives had to go into httpd.conf and that it wouldn’t work in .htaccess.


Recent Comments by Chad Cloman

Fix an extra slash beeing added during domain redirect to www with mod_rewrite
Here’s why that change was necessary.

If the rewrite rule is in the server configuration file (httpd.conf), then the leading slash is included as part of pattern that gets matched.

If the rewrite rule is in a per-directory configuration file such as .htaccess, then the path is stripped out before the matching occurs, and there is no leading slash.


How to fix / Resolve WordPress Blog /comments/feed/ redirect loop
My version of WordPress (3.0.1) does not have Redirection as an option under the Tools menu.


Share this on:

Comments are closed.