Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Suppose i have an internal search engine that works on this parameters

foo.bar/search/?where=Rome&what=restaurant&categories=healthy

that i can dinamically alias to

foo.bar/restaurants/healthy-restaurants-in-rome

This uri will return dynamic results.

I want the friendly url to be indexed in google, but the alias will be dynamically generated only when some user will perform a search with the given parameters, and the aliased url will be not listed anywhere in my site.

Will google be able to crawl the alias? If yes, how? If not, what to do in order to get it indexed?

share|improve this question
    
Don't have two URLs for your pages. That doesn't help anybody. Pick one format and stick with it. –  John Conde Aug 5 at 16:12
    
What do you mean? Any mod_rewrite(d) site has at least 2 urls, the language native (index?foo=1&bar=2&baz=3) and the rewrited one –  brazorf Aug 5 at 16:17

1 Answer 1

As long as the alias pulls up a valid web page, Google will be able to crawl it. You just need to make that URL available to them, most likely though an XML sitemap if the URL will not be available on your website.

The problem you're going to have is duplicate content. You'll have two URLs pulling up the same content which is exactly what Google doesn't want to have in its index. If you create an alias for a page, and you want that URL to be the one Google shows in the search results, then you also have to edit the original page to add a canonical URL. Without it, you run into the duplicate content issues.

What you should be doing is creating the search engine friendly URL for every page immediately and only use that URL. That will make both users and search engines happy as they will only see one URL per page and it will read more naturally than a query string.

share|improve this answer
    
Thank you, i'll need to take a look through those links –  brazorf Aug 5 at 16:25
    
+1 for discussing canonical urls. –  Jasper Aug 5 at 20:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.