Rewrite Rule miss parameter
3 posts
• Page 1 of 1
- BrrrWinter
-
- Posts: 4
- Joined: 23 Jun 2014, 07:00
Rewrite Rule miss parameter
Hi everybody,
I have following link:
http://www.test.de/Arzt/whatever/12345/?ABCD
the result via UrlRewrite should be
http://www.test.de/Arzt/whatever/test.p ... 5&Sid=ABCD
I tried follwing, but without success![Sad :-(](./images/smilies/icon_e_sad.gif)
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule Arzt/.*/(\d+)$ scripts/test.pl?E_Id=$1&Sid=%1? [NC]
Does someone have an idea what I miss?
Thanks for any help
Stefan
I have following link:
http://www.test.de/Arzt/whatever/12345/?ABCD
the result via UrlRewrite should be
http://www.test.de/Arzt/whatever/test.p ... 5&Sid=ABCD
I tried follwing, but without success
![Sad :-(](./images/smilies/icon_e_sad.gif)
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule Arzt/.*/(\d+)$ scripts/test.pl?E_Id=$1&Sid=%1? [NC]
Does someone have an idea what I miss?
Thanks for any help
Stefan
Re: Rewrite Rule miss parameter
Hello, Stefan
Strange, everything seems to be written correctly.
Please enable logging in httpd.conf by putting
RewriteLogLevel 9
and provide rewrite.log records for the test request.
BTW, do any other rules work for you?
Strange, everything seems to be written correctly.
Please enable logging in httpd.conf by putting
RewriteLogLevel 9
and provide rewrite.log records for the test request.
BTW, do any other rules work for you?
- BrrrWinter
-
- Posts: 4
- Joined: 23 Jun 2014, 07:00
Re: Rewrite Rule miss parameter
Hi,
thanks for your help.
I just found my problem.
Instead of:
RewriteRule Arzt/.*/(\d+)$ scripts/test.pl?E_Id=$1&Sid=%1? [NC]
I use now:
RewriteRule Arzt/.*/(\d+)/$ scripts/test.pl?E_Id=$1&Sid=%1? [NC]
So I missed the / in the pattern...argggg
Thanks anyway for your help.
Best regards
Stefan
thanks for your help.
I just found my problem.
Instead of:
RewriteRule Arzt/.*/(\d+)$ scripts/test.pl?E_Id=$1&Sid=%1? [NC]
I use now:
RewriteRule Arzt/.*/(\d+)/$ scripts/test.pl?E_Id=$1&Sid=%1? [NC]
So I missed the / in the pattern...argggg
Thanks anyway for your help.
Best regards
Stefan
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests