Re: [users@httpd] Apache Mode_rewrite query : Newbie question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rajat Sharma wrote:
Creating of configuration such as below is fine. But....Is above to be put in httpd.conf or .httpaccess or in completely new file....mod_rewrite.conf....

////////////////////////////////////
RewriteEngine  on
RewriteBase    /~quux/
RewriteRule    ^foo$  foo/  [R]
//////////////////////////////////

The above info. is what's missing on the page sent below.


I started to reply with the standard "RTFM" but when I checked, I saw that the manual doesn't really make this clear, so:

All of the Apache directives go in httpd.conf

Many of them can also go in .htaccess (not .httpaccess) when they apply to a single directory (the directory where you place the .htaccess file).

I believe the rewrite rules best go in the main httpd.conf file.

Good luck.

--J

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux