Mobile app version of vmapp.org
Login or Join
Sims2060225

: For multiple pages about each city, how should I structure my URLs? Let's say I have a profile page ex. www.domain.tld/London.html and inside the page links to gallery, history, directions, etc.

@Sims2060225

Posted in: #Seo #Url

Let's say I have a profile page ex. domain.tld/London.html and inside the page links to gallery, history, directions, etc. I use mod_rewrite so the extension .html just tell me that it's a profile link and nothing else.

What is the best structure for SEO purpose only?


Option A) separated pages identified by parameter ex. domain.tld/London.html?go=gallery Option B) separated pages identified by * ex. domain.tld/London_*_gallery.html Option C) all in one page with anchor ex. domain.tld/London.html#gallery

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

3 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

Instead of asking what is best for search engines, ask what is best for users. Search engines typically only "like" certain URLs because users find them easy to use and easy to link to. The best URLs are:


Descriptive (so users know what they will get when they encounter the URL)
Memorable (so users can share them easily and come back to them easily)
Short (so they can be typed easily)


You probably don't want capital letters in your URLs. It makes choosing the correct "canonical" URL easier if the rule for doing so is "make it lower case". See Should my URLs be lowercase?

In my opinion the .html just makes the URL needlessly complex. See Why are extensions often hidden on URLs?

Having a hash sign in your URL can make your site harder to crawl and index for Googlebot, so you probably don't want that option. You can make hash sign URLs crawlable with crawlable AJAX, but it is a pain to implement.

For SEO you don't want to use underscores in URLs. Choose dashes or slashes instead. See URLs: Should I use hyphens, underscores or plus symbols?

If it were my site, I would choose one of the following two URL structures:


City directory


/london
/london/gallery
/london/history

All top level pages -


/london
/london-gallery
/london-history



The first makes it clear that you have a "main" page about the city and users that understand how directory structures work would be able to muck with the URL. I might choose the second option if you didn't have a page to designate as the main one.

10% popularity Vote Up Vote Down


 

@Marchetta884

Your URL should reflect the keywords you are targeting. If gallery is keyword important for you then this structure would be good: domain.com/london/gallery.html You can achieve this using mod_rewrite.

10% popularity Vote Up Vote Down


 

@Jamie184

We get a question like this periodically.

Here is what you need to know: It does not matter. Search engines use word boundaries (programming term) while indexing and extract only the terms of the URI so that all the various other special characters are totally ignored. Whatever method you use, it will look the same to search engines when indexed. So for SEO, it really does not matter. Use what is best for your site and do not worry about it. Just make sure that you are using important keywords for the target page and you will be okay.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme