0
votes

i have facing some problem in htaccess i can't understand what the issue is that .. i would like to make SEO friendly URLs but when i write RewriteEngine on given error show on website

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

my website folder are. - includes - logs - public

and .htaccess file available on main. and index.php available in public folder . and htaccess file i was put in public folder same error show. In Include folder all class has been defined. In public folder all publicily available pages

htaccess File Code is :

RewriteEngine on
1
Can you show us your htaccess ?Adrien Lacroix
htaccess code is simple RewriteEngine onNavaid Zafar Ansari
Have you enable mod_rewrite with a2enmod ?Adrien Lacroix
how can i enable mod_rewrite Adrien LacroixNavaid Zafar Ansari
Have you an direct access to shell with your server ? A simply method to check if it's here is to use the php method phpinfo(); on a page and check if it's hereAdrien Lacroix

1 Answers

1
votes

Your server doesn't have the rewrite module loaded. You'll need to make sure this is installed and that your server is configured to load it. How you do this depends on which operating system you use.

If you are using a hosting provider rather than your own server, it is likely you don't have the access necessary to do this, in this case, contact support and ask them about it.