.htaccess使用可选的自定义POST变量重写

时间:2014-01-02 15:09:00

标签: php html .htaccess mod-rewrite url-rewriting

我环顾四周试图找到解决问题的方法但无济于事。或者我可能错过了它。

好的,我有一个.htaccess重写规则设置:     

# redirect all calls to index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [PT,L]

</IfModule>

将所有mysite.com/?page=thisroute/thispage或mysite.com/?page=thispage重写为:mysite.com/thisroute/thispage或mysite.com/thispage

有没有办法传递自定义POST变量?如何在不调用直接处理它的php文件的情况下通过这种格式传递表单?

Ex mysite.com/thispage/?name=scott&this=that等。

0 个答案:

没有答案