I'm attempting to perform some url rewriting, and after looking at the phpinfo file, I can't see any mention of this.. My host is FastHosts.
Should I be looking for something else in the phpinfo()
or should I assume that mod_rewrite
is simply disabled
?
mod_rewrite
is an apache module, not a PHP module. It isn't visible inphpinfo()
. Create an .htaccess in some subfolder and make sure it contains:Point your browser to the folder. If you get a Server Error, it isn't installed. Otherwise it is.
When PHP gets used as an Apache module apache_get_modules() can be used to check this
which then gives a result like this:
apache_get_modules() does not work if you are using PHP as CGI
I had followed all the procedures to enable the mod rewrite. But it just didn't seem to work.
I had even added the floowing piece of code correctly to the
.conf
file but to no avail.But then I noticed, Those inverted commas don't look normal!!! Bam!! Replaced those peskies with correct ones and Wah-Lah!!!