After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404
status errors.
My goal:
A 'static' rewrite of URLs, as follows (user clicks or enters the one URL/script, but internally the other one is being executed - the parameters are also 'static', hence I think I cannot use any kind of pattern (*.)
and $1
in the rule...:
domain.tld/en/abc.php?foo
todomain.tld/en/xyz.php?bar
(1st level)domain.tld/en/abc.php?foo&blabla
todomain.tld/en/xyz.php?bar&otherstring
(2nd level)
Additional Info:
- Directory 'en' exists.
- Script abc.php does not exist
- Script xyz.php exists and works fine with the given static parameter(s)
My .htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^en/abc\.php\?foo&blabla$ /en/xyz.php?bar&otherstring [NC,L]
RewriteRule ^en/abc\.php\?foo$ /en/xyz.php?bar [NC,L]
I already get a 404
error on this simpler last rule. I don't have access to the rewritelog.