Apache configuration URL Redirection

Apache configuration URL Redirection

Modify the /etc/httpd/conf/httpd.confcontents of the file

<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

for

<Directory "/var/www">
    AllowOverride All
    # Allow open access:
    Require all granted
        RewriteEngine On
        RewriteRule /task/* /index.html?$1
</Directory>

Guess you like

Origin www.cnblogs.com/zzhaolei/p/11067781.html