please Help to solve this problem
RewriteEngine On
ErrorDocument 400 /tmp/error/404.html
ErrorDocument 401 /404.html
ErrorDocument 403 /404.html
ErrorDocument 404 /404.html
ErrorDocument 500 /404.html
RewriteBase /
DirectoryIndex index.php
RewriteRule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [L,QSA,NC]
#RewriteRule ^showthread.php?t=([0-9]+)/?$ /vb/showthread.php?t=$1 [NC]
all rules work but the comments rule i can’t write it
can you help me to write this rule
I want to redirect this path /showthread.php?t=[0-9] to /vb/showthread.php?t=[0-9]
with out problems in seo ?
Reference: http://wiki.apache.org/httpd/RewriteQueryString
Note, per the example shown there as well, this will only work if
tis the only parameter in the query string – but it could be expanded to allow for others as well, such as:(I did just test this, and it seems to work without issue.)
Also, if you want this to redirect, rather than just proxying the request to the other php file, you’ll want to add something like
[R=301]to the end of theRewriteRule.