Most of cases Mod_rewrite is installed and enabled by default on all servers and all servers that run cPanel and cannot be disabled.
If you want to check if Mod_Rewrite is enabled on the machine, there are several methods to check if it's working, We will try to show you with simplest method, Create a .htaccess file (a text file named .htaccess) with the following code in it
Options +FollowSymLinks
RewriteEngine On
Then save the file to a subdirectory of your main site, for example:
[code]/rewrite-yourtestfolder/.htaccess
[/code]
Now when you go to browse to the subdirectory ( www.yourdomain.com/rewrite-yourtestfolder/ ). One of two things could happen
1. If no errors you got then mod_rewrite engine is now enabled.
2. 500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your server.
How to see if mod_rewrite enabled on website
How to see if mod_rewrite enabled on website
Hi,
How can I check 'Mod_Rewrite' is enabled or not without going to WHM or CPanel?
Regards
Vimal
1 Responses
Submit Your Response
Already have an account? Login into comment