Google Search Results Display URL
-
Our urls show as www.domain.com/getproduct.aspx?productid=48376 (url #1) in Google search results.
When you click on the link and go to the site the URL is www.domain.com/product-name.aspx (url #2)
I checked in Google Webmaster Tools (Fetch as Google) and there is a 302 redirect from url #1 to url #2. It also shows a Set-Cookie value, ASP.NET_SessionID=
If we make it a 301 redirect instead, will the url displayed in Google search results be the url #2?
We need to get rid of the Set-Cookie for crawlers correct?
-
Hi Huey,
What I would do is first look in Google to see if they're crawling and indexing all of your products. For example. search Google for this:
site:www.domain.com/getproduct.aspx
With that search you should see your products getting indexed. If not, then there is an issue. I don't recommend that you use any redirects at all, as Google can crawl and index URLs with parameters in them.
That said, you should not be using a 302 redirect as it's only temporary one and Google will NOT change the URL, as they are doing now. If you used a 301 Permanent Redirect Google should then show the full URL.
If at all possible, I recommend getting rid of the session IDs and cookies. If you must have them, then those session IDs should not be in the URLs. I would, though, get rid of them for the search engine crawlers at a minimum.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How to Remove Web Cache snapshot page & other language SEO Title in Google Search Engine?
Hi... Please tell me how to remove web cache link given below. I have changed my SEO title but it can't be changed...Any other methods for without using webmaster tools. Kw3arat
Technical SEO | | Thilak_geo040 -
Canonical sitemap URL different to website URL architecture
Hi, This may or may not be be an issue, but would like some SEO advice from someone who has a deeper understanding. I'm currently working on a clients site that has a bespoke CMS built by another development agency. The website currently has a sitemap with one link - EG: www.example.com/category/page. This is obviously the page that is indexed in search engines. However the website structure uses www.example.com/page, this isn't indexed in search engines as the links are canonical. The client is also using the second URL structure in all it's off and online advertising, internal links and it's also been picked up by referral sites. I suspect this is not good practice... however I'd like to understand whether there are any negative SEO effectives from this structure? Does Google look at both pages with regard to visits, pageviews, bounce rate, etc. and combine the data OR just use the indexed version? www.example.com/category/page - 63.5% of total pageviews
Technical SEO | | MikeSutcliffe
www.example.com/page - 34.31% of total pageviews Thanks
Mike0 -
How to handle Friendly URLs together with internal filters search?
I've been trying to handle URLs from a unfrendly folder format to a semantic one, the thing is by doing so I end up with a longer URL and therefore a longer Title. Right now the format of my classified site for job seeking looks like this (folders): site.com/search/category/sales/level/supervisor/location/seattle/company/acme/published/2-days-ago/type/full-time/q/salesman/page/2 format: Filter/Content where at the end q is the query people are writting My suggestion is the following: Mixing Jobs with location, mixing category and level, and puting the rest of the filters at the end adding "--" between them. And adding 2 parameters, query (q) and pagination (pag) site.com/jobs-at-seattle/sales-supervisor/company/acme/full-time--published-2-days-ago?q=salesman&pag=2 Any thoughts on how to handle URLs over 100 chararcters and titles that go over 65?, or maybe is ok to have "friendly" long URLs and long titles when it comes to classified ad sites since they are based on internal filters to help people find what they are looking for. Sidenote: Is itok to have 2 parameters in the URL (Query and Pagination) Thanks a lot.
Technical SEO | | JoaoCJ0 -
How is IT handling multi-page search results for this url?
How is the IT team handling multi-page results? The URL is the same - with out any parameters, but the content changes. Is this best way to handle it from an SEO perspective?
Technical SEO | | S.S.N0 -
Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL?
This is for an ecommerce site, and the company I'm working with has started selling a new line of products they want to promote.Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL? One of my concerns is losing a little bit of link value from redirecting. Thank you for reading!
Technical SEO | | DA20130 -
No Ranking for bathroom vanities in organic results for google
My website is www.tanyas.ca and I noticed that I can't find a result in the organic directory of google for my main keyword, "bathroom vanities". Your help is greatly appreciated. Cam
Technical SEO | | camc0 -
Google indexing thousands crazy search results with %25253
In GWT I started seeing very strange pages indexed a few weeks, and Google is no reporting over 21,000 of pages (blocked by robots.txt) with weird URLs like this: http://www.francesphotography.com/?s=no-results:no-results%25252525252525253Ano-results%2525252525252525253Ano-results%252525252525252525253Ano-results%252525252525252525253Ano-results%252525252525252525253Ano-results%252525252525252525253Ano-results%25252525252525252525253Ano-results%25252525252525252525253Ano-results%2525252525252525252525253Adanna&cat=no-results http://www.francesphotography.com/?s=no-results:no-results%2525253Ano-results%25252525253Ano-results%25252525253Ano-results%25252525253Ano-results%2525252525253Ano-results%25252525252525253Ano-results%25252525252525253Ano-results%25252525252525253Adanna&cat=no-results The current robots.txt looks like this: User-agent: *
Technical SEO | | BoulderJoe
Disallow: /wp-content Disallow: /wp-admin Disallow: /wp-includes
Disallow: /data
Disallow: /slideshows
Disallow: /page/*/?s=
Disallow: /?s=
Disallow: /search This website is running an up to date WP install with Yoast's Google Analytics and SEO plug-in. I can't point to anything specific that happened with the site when these URLs started appearing even after I modified the robots.txt. What can be done to try and stop Google from creating and indexing these goofy URLs? I see lots of sites having this issue when I search in Google, but no one seems to have a solution.0 -
Canonical URL
In our campaign, I see this notices Tag value
Technical SEO | | shebinhassan
florahospitality.com/ar/careers.aspx Description
Using rel=canonical suggests to search engines which URL should be seen as canonical. What does it mean? Because If I try to view the source code of our site, it clearly gives me the canonical url.0