Mobile app version of vmapp.org
Login or Join
Samaraweera270

: 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

@Samaraweera270

Posted in: #301Redirect #302Redirect #Domains #Homepage #Seo

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 ?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Welton855

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.

10% popularity Vote Up Vote Down


 

@Kevin317

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme