croakingtoad
12-05-2004, 07:43 PM
How do I turn it on? (mod_rewrite)
Is it PHP or Apache? Pros? Cons?
Forgive my ignorance, just never used it and have installed a script that suggests it be turned on...
gogocode
12-06-2004, 09:00 AM
Originally posted by croakingtoad
How do I turn it on? (mod_rewrite)
Is it PHP or Apache? Pros? Cons?
Forgive my ignorance, just never used it and have installed a script that suggests it be turned on...
In your .htaccess,
RewriteEngine On
and then your rewrite ommands. You will of course need the permissions to do that (FileInfo override I believe) and mod_rewrite will have to be loaded into apache (in the main config) or you'll get a 50x error.
Read the mod_rewrite documentation at apache.org
http://httpd.apache.org/docs/mod/mod_rewrite.html
http://httpd.apache.org/docs/misc/rewriteguide.html
MegaHosters
12-06-2004, 07:53 PM
I would like to also quickly add (since I USED to do this) ... Do not place your mod-rewrite rules directly in your httpd.cong file. Always try to use a .htaccess file.
Clint