-
If you read the post above you had same problem as me.
If the steps did not help, here is how I solved the problem. You should not need to google for hours to find the answers and this should work.
HTACCESS IS NOT WORKING
There are a plethora of reasons why it might not work on your system, and these reasons vary so wildly, that we can't give an exhaustive solution for that.
That said, here are a few pointers that might help you fix it:
Enable .htaccess in your httpd.conf or apache.conf¶
It's unusual, but possible that .htaccess is not enabled on your site. If you are hosting it yourself, it's easy enough to fix.
FOR BEGINNERS: If you do not know the locations of your files, search for them with find command: "FIND path -name FILENAME"
CMD> find / -name apache2.conf
Open your httpd.conf or apache.conf in a text editor, and locate the section:
AllowOverride None
Change the AllowOverride line to:
AllowOverride All
Be sure to restart Apache after making any modifications to this file. Now, your .htaccess should work. You can also make this change inside a virtual host, which would normally be preferable, but that depends on the way Apache is set up.
If your site is hosted elsewhere, check your control panel (Plesk, DirectAdmin, CPanel, whatever) to see if you can enable .htaccess there. If not, contact your hosting provider to do it for you.
Enable mod_rewrite in Apache¶
There are a number of ways to enable mod_rewrite, in case it's not yet enabled on your setup. See this Stack Overflow thread for various ways this may be done on different setups: How to enable mod_rewrite for Apache 2.2.
Test if .htaccess is working¶
The simplest way to test if apache uses your .htaccess file, or if it otherwise ignores it, is to intentionally break it.
Edit the .htaccess file, so the first line reads 'Test.':
Now, if you refresh the page in your browser, you should see an error page like this:
Internal Server Error
If you see this error, IT IS GOOD! This means that Apache is parsing the .htaccess file, and it encounters the error we've put in there! So far, so good!
Apache Setup Ignores the HTACCESS
If you do not see an 'Internal Server Error', your Apache setup ignores the .htaccess file, and you need to fix that. Generally, Apache ignores the .htaccess file because of the following Apache configuration AllowOverride none. Check your virtual host configuration and add/amend to AllowOverride All.
Example: Options Indexes FollowSymLinks AllowOverride All Require all granted
If you are not sure if the .htaccess file exists and is readable, download the file from the GITHUB repository: https://github.com/unaio/una/blob/master/.htaccess
-
Looks like....this does not work for me...!! if I add
AllowOverride All
The loading ...stops ...which I used to get earlier...
-
Hello vidyap !
Please share more details: where di you add "AllowOverride All", what links don't work etc
-