How to see if Mod_Rewrite is enabled on site/server?

mod rewrite is installed and enabled by default on all servers supported by Hands-on Web Hosting, and all servers that run cPanel and cannot be disabled. The reason it cannot be disabled as it will adversely affect cPanel functionality that relies upon it to function properly.

If you are questioning if Mod_Rewrite is enabled on the machine, there are several ways to check if its working, I will try to show you the simplest method, Create a .htaccess file (a text file named .htaccess) with the following code in it

 

Options +FollowSymLinks
RewriteEngine On

Save the file to a subdirectory of your main site something like this

/rewrite-testfolder/.htaccess

Now attempt to browse to the subdirectory (http://www.yourdomain.com/rewrite-testfolder/). One of two things could happen

No errors Congrats mod_rewrite engine is now enabled.

500, Internal Server Error If you get this message then mod_rewrite was not installed/enabled on your computer.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can I upload files via an online file manager ?

Yes. Login to your Control Panel (http://www.yourdomain.com/cpanel/) and select "File Manager".

How to create an autoresponder in Cpanel

We do have a video tutorial on how to create an autoresponder. Autoresponder returns a...

How to login to cPanel

Please watch our movie tutorial on how to login to cPanel. If you recently purchased a new...

What is FTP?

FTP stands for File Transfer Protocol and it is the process used to upload and download files...