Web Programming

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

PHP mod_rewrite  Viewed 17201 time(s), 2 post(s)., 1/10/2014 3:06:01 AM - by Khalid

Khalid
Khalid 1/10/2014 3:06:01 AM

How to check if mod_rewrite is enabled?

This content has not been rated yet. 
113 Reputation 7 Total posts
1
Raji
Raji 1/10/2014 8:25:50 PM

you can use apache_get_modules(). To check if mod_rewrite is enabled, simply do

if(in_array('mod_rewrite',apache_get_modules()))

This content has not been rated yet. 
61 Reputation 12 Total posts
2