Friday, 22 July 2011

How to check whether your server had Mod_Rewrite enabled


Put this 3 lines in .htaccess on your site.
For cpanel user, it should be under /home/username/public_html/.htaccess
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yahoo.com/$1 [R=301,L]
When you visit your site and it get redirect to www.yahoo.com, that mean Mod_Rewrite is enabled on the server.

0 comments:

Post a Comment