Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Mod_rewrite rules be in file other than httpd.conf

Status
Not open for further replies.

rplatz99

Technical User
Jul 22, 2011
2
0
0
US
Someone was asking me this at work and I can't find any evidence it can. The concern was somehow by using rewrite rules you are allowing "access" to the httpd.conf file and it might get corrupted by some client purposely or inadvertently. Is that even possible?
 
Hi

rplatz99 said:
Can Mod_rewrite rules be in file other than httpd.conf
If by "rules" you mean [tt]RewriteRule[/tt] directives, then see its documentation :
RewriteRule Directive said:
Context: server config, virtual host, directory, .htaccess
So it can be used in the access file too. Butt there the things are changing abit, see the Per-directory Rewrites section in [tt]RewriteRule[/tt]'s documentation.

If by "rules" you mean all directives provided by mod_rewrite, then see each directives documentation, as their context varies.


Feherke.
 
Thanks for the reply - yes I mean the rewrite directives and yes I had already looked in the mod_rewrite documentation but couldn't find anything on the subject one way or the other so I was just wondering if anyone else had been asked to move the rewrite directives out of the httpd.conf file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top