500 Internal Server Error when using .htaccess with RewriteEngine

后端 未结 7 848

I am on the shared host Bounceweb and I am trying to add some rewrite rules to make my links look prettier.

One of these rules is to make the url: http://mysit

7条回答
  •  感动是毒
    2020-12-03 05:11

    In some cases maybe mod_rewrite module in apache is not loaded . Check your apache configuration.

    Update:

    Windows xampp : Open xampp/apache/conf/httpd.conf and uncomment mod_rewrite module.
    Windows wamp : Open wamp/bin/apache/Apache2.x.x/conf/httpd.conf and uncomment mod_rewrite module.
    Ubuntu : Type in terminal : a2enmod rewrite
    Ubuntu manual : cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
    And then reload apache
    Ubuntu : service apache2 reload OR service apache2 restart
    Windows : From xampp or wamp control panel.

提交回复
热议问题