The web server is Apache. I want to rewrite URL so a user won t know the actual directory. For example: The original URL:
www.mydomainname.com/en/working/working.php?guwork_id=11
预期的URL:
页: 1
我在回信中补充了以下声明:
RewriteCond %{HTTP_HOST} ^(?!www)([^.]+).mydomainname.com$ [NC]
RewriteRule ^(w+)/(d+)$ /$1/%1/%1.php?%1_id=$2 [L]
Of course I replaced mydomainname with my domain name. .htaccess is placed in the site root, but when I access 页: 1, I got "Object not found".(Of course I replaced mydomainname with my domain name.)
我在回信中补充了以下声明:
RewriteRule ^/(.*)/en/piecework/(.*)piecework_id=([0-9]+)(.*) piecework.mydomainname.com/en/$3
Of course I replaced mydomainname with my domain name. .htaccess is placed in the site root, but when I access 页: 1, I got "Object not found".(Of course I replaced mydomainname with my domain name.)
什么错误?