phpinfo() mod_rewrite

shane picture shane · Sep 22, 2010 · Viewed 30.7k times · Source

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?

Answer

Emil H picture Emil H · Sep 22, 2010

mod_rewrite is an apache module, not a PHP module. It isn't visible in phpinfo(). Create an .htaccess in some subfolder and make sure it contains:

RewriteEngine on

Point your browser to the folder. If you get a Server Error, it isn't installed. Otherwise it is.