Rewrite with Query-String parameter
3 posts
• Page 1 of 1
- BrrrWinter
- Posts: 4
- Joined: 23 Jun 2014, 07:00
Rewrite with Query-String parameter
Hi there,
I can't get a simple rule working
I want to rewrite this...
http://dummy.de/Arzt/Hamburg/Meier/336181?beaf33ec5a9da9e56a1db7a8f3cd13f6
to...
http://dummy.de/RealPath/index.plx?id=336181&sid=beaf33ec5a9da9e56a1db7a8f3cd13f6
I tried this rule:
RewriteRule Arzt/.*/(\d+)?(.*) RealPath/index.plx?id=$1&sid=$2 [NC]
which works fine at all but it is missing the sid. The problem seems to be the ? but I can't get it working.
Thanks for any help
Stefan
I can't get a simple rule working
I want to rewrite this...
http://dummy.de/Arzt/Hamburg/Meier/336181?beaf33ec5a9da9e56a1db7a8f3cd13f6
to...
http://dummy.de/RealPath/index.plx?id=336181&sid=beaf33ec5a9da9e56a1db7a8f3cd13f6
I tried this rule:
RewriteRule Arzt/.*/(\d+)?(.*) RealPath/index.plx?id=$1&sid=$2 [NC]
which works fine at all but it is missing the sid. The problem seems to be the ? but I can't get it working.
Thanks for any help
Stefan
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Rewrite with Query-String parameter
Hello,
Please, try the following:
Regards
Please, try the following:
- Code: Select all
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule Arzt/[^/]+/[^/]+/(\d+)$ RealPath/index.plx?id=$1&sid=%1? [NC]
Regards
- BrrrWinter
- Posts: 4
- Joined: 23 Jun 2014, 07:00
Re: Rewrite with Query-String parameter
It works
Thanks for the support... you made my day
Thanks for the support... you made my day
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests