我遇到了.htaccess重写规则的问题。GET参数和.htaccess - 奇怪的URL
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([a-zA-Z0-9-]+)/(.*)$ /other-app/application/$2&THEME=$1 [L]
我需要网址:
localhost:8443/other-app/application/nice-url-theme/index.php
localhost:8443/other-app/application/nice-url-theme/edit.php?edit&EDIT_ID=XX
localhost:8443/other-app/application/nice-url-theme/brow.php
localhost:8443/other-app/application/nice-url-theme/brow.phpPARAM1=XX&PARAM2=YY
如果我得到URL
localhost:8443/other-app/application/nice-url-theme/edit.php?edit&EDIT_ID=XX
它显示错误404:其他-应用程序/应用/ edit.php & THEME =不错,网址未找到主题。
参数星问题在哪里?为什么它不能采用GET参数?
这是'.htaccess'在other-app/application /'目录下吗? – anubhava
是的,它是正确的目录。 – ondrusu