URl rewriting not working

Posted March 23, 2014 3.8k views
I have an existing website that runs under Joomla 3.3 (Apachec, Mysql, PHP) with an existing host. I have taken a backup (with Akeeba) and am porting it over to a cloud server with Zpanel (testing/learning the cloud server). I can install the backup copy to the server and can access the admin side and the home page. The basic site has URL rewriting on (using mod_rewrite and .htaccess). With this ported over version I get the home page fine, but when I try to view any other page I get a NOT FOUND error. If I turn the URL rewriting OFF in the Joomla admin panel then the site works correctly. This is not a live site yet.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

First check if your mod_rewrite is enabled by running the following command in your console:

sudo apache2ctl -M

This command should list all your loaded modules.
If the module is not enabled and loaded, which I presume happens, just run the next two commands in your terminal:

sudo a2enmod rewrite
sudo service apache2 restart

These commands should enable the rewrite module and restart your apache webserver.

Let me know if it helped.
Hey bro, i followed you but still .htaccess not work. sudo a2enmod rewrite Module rewrite already enabled i use Ubuntu 14

I have same problem how to resolve