How to rewrite this url?
2 posts
• Page 1 of 1
How to rewrite this url?
Hi, I'm wondering whether rewrite3.0 can do this.
I have a site, somehow the google thinks it has url like this:
http://www.mysite.com/IL/Venice/Industr ... ve./709265
the actual url should be
http://www.mysite.com/IL/Venice/Industr ... Ave/709265
or http://www.mysite.com/property.aspx?id=709265
How to rewrite it?
I tried
#RewriteRule /[a-zA-Z][a-zA-Z]/[a-zA-Z0-9\-/,.`')(&_@%\.]+./([0-9]+) /Property.aspx?ID=$1 [L]
However, it did not work.
thanks
I have a site, somehow the google thinks it has url like this:
http://www.mysite.com/IL/Venice/Industr ... ve./709265
the actual url should be
http://www.mysite.com/IL/Venice/Industr ... Ave/709265
or http://www.mysite.com/property.aspx?id=709265
How to rewrite it?
I tried
#RewriteRule /[a-zA-Z][a-zA-Z]/[a-zA-Z0-9\-/,.`')(&_@%\.]+./([0-9]+) /Property.aspx?ID=$1 [L]
However, it did not work.
thanks
Re: How to rewrite this url?
Hello.
So what is the pattern here? Can we rely on URL containing dot, followed by slash and numbers? Then please try this rule:
So what is the pattern here? Can we rely on URL containing dot, followed by slash and numbers? Then please try this rule:
- Code: Select all
RewriteRule (.*)\.(/\d+/?) $1$2 [R]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests