Replace / substitute %2F with /
7 posts
• Page 1 of 1
Replace / substitute %2F with /
Hello,
Can you tell me how I substitute/replace encoded characters in a url that is not working on our site.
For example how would I replace the %2F with a / in the following url:
http://www.mydomain.com/sporting-fitnes ... workout%2F
to
http://www.mydomain.com/sporting-fitnes ... c-workout/
We have several urls with this issue and some have a different amount of directories so we need it to dynamically replace however many %2F's there are with /
Thank you,
Shawn
Can you tell me how I substitute/replace encoded characters in a url that is not working on our site.
For example how would I replace the %2F with a / in the following url:
http://www.mydomain.com/sporting-fitnes ... workout%2F
to
http://www.mydomain.com/sporting-fitnes ... c-workout/
We have several urls with this issue and some have a different amount of directories so we need it to dynamically replace however many %2F's there are with /
Thank you,
Shawn
Re: Replace / substitute %2F with /
Hello, Shawn
What you want is only possible in ISAPI_Rewrite 3 as v2 does not have a loop function.
The rule for v3 will look as follows:
RewriteBase /
RewriteRule ^(.*)\%2F(.*)$ $1/$2 [NC,LP,L]
What you want is only possible in ISAPI_Rewrite 3 as v2 does not have a loop function.
The rule for v3 will look as follows:
RewriteBase /
RewriteRule ^(.*)\%2F(.*)$ $1/$2 [NC,LP,L]
Re: Replace / substitute %2F with /
Hello, Shawn
Well, the easiest way is to check the name of your config files:
if they are httpd.ini, then it's v2
if they are httpd.conf and .htaccess, then it's v3
Well, the easiest way is to check the name of your config files:
if they are httpd.ini, then it's v2
if they are httpd.conf and .htaccess, then it's v3
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests