Simple Find Replac
3 posts
• Page 1 of 1
Simple Find Replac
Okay....I wish I did this RegEx stuff more often. Anton....you are truly a magician.
I know this is a simple one....but I was not able to find a quick solution. I have some strange function.session-starts appearing in the Google Index. I need them to resolve back to their normal self.
Here are the samples:
So I would like:
In other words...anytime I match "function.session-start" with /blog, I would like it to be removed to the trailing slash.
I know this is a simple one....but I was not able to find a quick solution. I have some strange function.session-starts appearing in the Google Index. I need them to resolve back to their normal self.
Here are the samples:
http://www.avst.com/blog/1002/function.session-start
http://www.avst.com/blog/1020/function.session-start
http://www.avst.com/blog/1039/function.session-start
So I would like:
http://www.avst.com/blog/1002/function.session-start -> http://www.avst.com/blog/1002/
http://www.avst.com/blog/1020/function.session-start -> http://www.avst.com/blog/1020/
http://www.avst.com/blog/1039/function.session-start -> http://www.avst.com/blog/1039/
In other words...anytime I match "function.session-start" with /blog, I would like it to be removed to the trailing slash.
Re: Simple Find Replac
Hello,
Please try the following rule:
RewriteBase /
RewriteRule ^(blog/\d+/)function\.session-start$ /$1 [NC,R=301,L]
Please try the following rule:
RewriteBase /
RewriteRule ^(blog/\d+/)function\.session-start$ /$1 [NC,R=301,L]
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests