: SEO and unique IDs in urls I have a web site who's home page is at http://domain.com when a new user first hits the web site I'm creating a unique id of 5 chars for them (for example
I have a web site who's home page is at
domain.com
when a new user first hits the web site I'm creating a unique id of 5 chars for them (for example 'abcde' and redirecting them to domain.com/abcde so they can later bookmark and return to their workspace.
My question is what's the best approach for SEO purposes, I need the main url domain.com to be indexed but Google will also get the redirect and will not index the main page.
I know about canonical urls, but this applies only when the domain.com url does not redirect
also should I use 301 or 302 code in the redirect ?
More posts by @Samaraweera270
2 Comments
Sorted by latest first Latest Oldest Best
That kind of borders on cloaking and could get you dinged or even banned from Google. What you might think about doing is for first time users having your home page with all of the information and a big "Get Started" button and if they return use a cookie to identify they user and redirect them to domain.com/abcde.
If you do not want the URLs with the unique IDS indexed then after capturing that information and setting cookies/setting up their session do a 301 redirect to the index page without the query string. Canonical URLs would work, too, but this way clearly ensures only the non-querystring version is only ever indexed.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.