0
网址我想这个网址重定向:删除特殊字符?从的.htaccess
http://www.domena.pl/?tekst,123.html
这个
http://www.domena.pl/tekst,123.html
我只是想删除?在第一个/后,所以我想重定向每个网址domena /?......到domena/......
我使用这个htaccess,它适用于domena/testtekst,123,但是我不知道我应该如何改变它以使用特殊字符?
RewriteCond %{HTTP_HOST} ^www.domena.pl$
RewriteCond %{REQUEST_URI} ^/test(.*)$
RewriteRule ^test(.*)$ http://www.domena.pl/$1 [L,R=301]
这不起作用:
RewriteCond %{HTTP_HOST} ^www.domena.pl$
RewriteCond %{REQUEST_URI} ^/?(.*)$
RewriteRule ^?(.*)$ http://www.domena.pl/$1 [L,R=301]
这并不工作过:
RewriteCond %{HTTP_HOST} ^www.domena.pl$
RewriteCond %{REQUEST_URI} ^/\?(.*)$
RewriteRule ^\?(.*)$ http://www.domena.pl/$1 [L,R=301]