Simple probably but how???? Anyone?

Discuss practical ways rearrange URLs using mod_rewrite.

Simple probably but how???? Anyone?

Postby v-design » Mon Nov 15, 2004 7:57 am

Hi guys, i want to rewrite an old url to a new. The old one is not good for my database anymore.

This is the old url:

http://www.vakantiehuisje.tv/vakantiehu ... enegouwen/

And this is the new:

http://www.vakantiehuisje.tv/vakantiehu ... enegouwen/

greets V-design
v-design
 
Posts: 1
Joined: Mon Nov 15, 2004 7:53 am

Postby Caterham » Sat Dec 11, 2004 3:24 pm

I don't think that this works 'cause of the decoding of the "search pattern ", but here is a try :confused:
Code: Select all
RewriteEngine On
RewriteRule ^(.+),(.+) $1\%2C$2 [N]
RewriteRule ^((.+)\%2C(.+)) $1 [NE,L]


Note: The 1st rule without the NE-Flag. This would turn to %252C, but is decoded again with the next 'run'/processing of the rule in the search pattern

May be you could post, if this works.

Bob
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 14 guests

cron