apache mod_rewrite is not working or not enabled

前端 未结 5 1241
后悔当初
后悔当初 2021-02-02 05:56

I have installed rewrite_module and modified php.ini on Apache.

I create rewrite.php and .htaccess files, but it\'s not working.

5条回答
  •  离开以前
    2021-02-02 07:00

    It's working.

    my solution is:

    1.create a test.conf into /etc/httpd/conf.d/test.conf

    2.wrote some rule, like:

    
    RewriteEngine On
    RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]
    
    

    3.restart your Apache server.

    4.try again yourself.

提交回复
热议问题