Questions
-
Wildcard Redirects & Canonical Tags
Hi Nakul Here is my stab at question 1, my methodology is trial and error so if any guru's want to take another shot at it please do so. Here is a nice 301 reference page lots of examples RewriteEngine On RewriteRule ^(.)_red-widgets-cid-1234.html$ www.domain.com/red-widgets-cid-4567.html [R=301] #Example 2 RewriteRule ^(.)_red-widgets-cid-1234+10.html$ www.domain.com/red-widgets-cid-6789.html [R=301] #Example 3 RewriteRule ^(.*)_red-widgets-cid-1234+10+5.html$ www.domain.com/american-red-widgets-cid-6789+5.html [R=301,L] We use ^ to denote start of string We use $ to denote end of string We use (.*)_ to look for a keyword. In the examples above we are looking for what each page name has in common We use [R=301,L] for the Last rewrite, previous rules just use [R=301] One thing that (maybe) needed is escaping the +signs in the string so like example 3 would be ^(.*)_red-widgets-cid-1234+10+5.html$ www.domain.com/american-red-widgets-cid-6789+5.html Also I may missed a wildcard on some of these.... ^(.)_red-widgets-cid-1234+10+5(.).html$ www.domain.com/american-red-widgets-cid-6789+5.html Question 2: Canonical to self canonical tag is okay. This = That and That = That ..........Okay This = That and That = The ..........Not Okay Hope that puts you on track
Intermediate & Advanced SEO | | donford0 -
Regular Expression / Wildcard Redirect Situation
Hi Nakul, Forgive me if this is too simplistic... The following rewrite rules should cover the examples you provided: RedirectMatch 301 red-widgets-cid-1234.html http://www.domain.com/red-widgets-cid-4567.html RedirectMatch 301 red-widgets-cid-1234- http://www.domain.com/red-widgets-cid-4567.html RedirectMatch 301 red-widgets-cid-1234+ http://www.domain.com/red-widgets-cid-6789.html We just need to escape the special characters (period, hyphen and plus sign). This should cover the examples you provided, and no need for any elaborate RegEx patterns. Of course, if there are variants your example doesn't mention, things could get more complicated. (I'm also assuming here you're on an Apache environment.) If I've misunderstood your question or the situation is more complicated than your example demonstrates, let me know. Thanks, Mike
Intermediate & Advanced SEO | | MikeTek0 -
SEO Conferences - Which One(s) do you Attend ?
You've certainly got some excellent SEO conferences in your list there Nakul. Have you ever thought about crossing the pond? Here in the UK we have some great conferences and this year is the first year of the ionSearch SEO conference in Leeds. Link love - 30th March / London Brighton SEO - 13th April / Brighton ionSearch -18th April / Leeds SAScon - 17th - 18th May / Manchester
Inbound Marketing Industry | | Fergclaw1