Efficiently accessing database without ID [closed] - seo

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
SEO friendly URLs such as http://edition.cnn.com/2013/06/06/sport/abedi-pele-ayew-ghana-football/index.html do not have any ID numbers. Clearly there must be some kind of mapping, but what is the best way to retrieve data. IDs are great because they can be indexed, so is there hashing involved, or is there a better method?

Most modern CMSs keep an internal ID number for each article, and also associate each article with an alias or permalink or search engine friendly (SEF) URL, which is the friendly name you're referring to in the URL. It's quite simple, really: you just need to keep an associative array of friendly URLs and their corresponding IDs. If a user requests a friendly URL foo, the site will know that it corresponds to a page with ID bar.
Here's how a lot of popular CMSs handle aliases / permalinks / SEF URLs:
URL aliases in Drupal
SEF URLs in Joomla!
Permalinks in Wordpress

Related

Will traffic from 'unrelated' searches improve my SEO? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am a founder for a tech summer camp program. My website has a page full of resources for web-development meant for camp participants and has been getting lots of traffic from people querying html colors, css cheat sheet, and other similar terms.
My question is: will traffic from these terms hurt my SEO for queries involving things like summer camps,tech camps halifax, or other more related queries? or Is any traffic good for my SEO?
Note: We have no problem with people accessing these resources, so I haven't bothered to password protect it or add robots.txt or anything. The site is compcamp.ca and the resource page I mentioned is compcamp.ca/web-development-design-resources/
Google ranks the site compcamp.ca/web-development-design-resources/ well for search-queries like css cheat-sheet, because the content of your site contains the keywords and so on.
There are no Keywords for "tech camps halifax" and so on. So Google won't rank this subsite.
If you want to rank fpr "tech camps halifax" you have to take content on a site (i would expect the start page) which contains those keywords.
The other way round: Successful search queries on your cheat-sheet sub-site won't hurt your rankings from other sub-pages which delivers different information = different keywords.
I hope this is answering your question, don't bother to ask if not.

SEO - Why are they doing these 301 redirects? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm looking at a site that ranks #1 in google for some keywords. I looked over the code of the sites that link to them using ahrefs.com and I came upon something interesting that I don't understand:
For siteA1, they have 5 or more pages (shipping, terms & conditions, sitemap etc) that link back to the web design firm that did their site. EX: siteA1.webdesignfirmSiteB.com/sitemap and this 301 redirects to siteA1.com/sitemap.
For another site siteA2, they have a lot of links that do the same thing. EX: siteA2.webdesignfirmSiteB.com/blue-widgets/ 301 redirects to siteA2.com/blue-widgets/
Is this cheating the ranks?
This is probably left over from when the site was being developed. It is quite common to have sitename.webdesign.com and then once the site goes live just 301 redirect all to the "proper" name.
I don't know if there are more reasons than that, but the above is common practice.

GET vs POST in SEO [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
My web application retrieves a page for every request generated by a form submission. That form submits to the same URL of the page.
Each time the page loads with a different title tag. Does it indicate different pages with the same URL?
How does it affect SEO? how can I manage this situation?
Edit
This question is not purely SEO related no it requires SEO specific reasoning or answers it can be explained also technically how search engine robots work. if it still seems offtopic for moderators I request them to explain why
Try and use a rewiter rule to format your URL to a unqiune page if your always loading to the same page google ( or other search engines) will only index that single page.
http://www.seomoz.org/img/upload/anatomy-of-a-url.jpg
In addition to load the page each time with different title tag you need to append the URL with some uinque text like your GET variable data..
For getting crawled by spiders don't forget to submit your sitemap to search engines with relevant urls..

Single domain/different localizations SEO? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm planning on using IP geolocation to get the user's country and then display the site in spanish or english without changing the domain.
How do I handle SEO?
Will search engines index both versions of my site? will people from latin america be able to find the spanish version?
You have several options. Which ever you choose: Do not rely on setting a cookie, because Google will simply ignore it and will only get pages in your default language. Google actually needs any kind of signal inside your URL that specifies the language.
1) Use sub domains like en., de., fr.* etc. When a new user arrives, make a redirect to the corresponding sub domain. However, I assume you include sub domains in your statement of not changing the domain.
2) Use language dependent prefixes in your url patterns like so:
/en/blog/, /de/blog/, /fr/blog/ and so on.
Or for your homepage use /de/, /fr/, /en/
New in Django 1.4: i18n URL patters
3) An alternative approach is using get parameters like Google does: /blog/?hl=en or /blog/?hl=fr. This approach easily gets messy.
As for your homepage "/", make a redirect to the corresponding language, no matter if you choose prefixes or get params.
My personal choice is mostly suggestion number two. You may take a look how we do it on Pixabay.com - one of our projects using i18n URL patterns.

SubDomains for blogs [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
Improve this question
Am I creating competitors for my site by creating subdoamins... becos Google treats subdomains as individual domains... so, am I going to create/build competitors for my website....
I want to go for subdomains.. please explain me the drawbacks and at the same time advantages of having subdomains...
One more question... subfolders are mostly used for blogs... but why the wordpress, blogspot has taken subdomains like if I create any blog then in wordpress it would appear like http://www.health.wordpress.com... so why it has taken subdomain...???
Am I creating competitors for my site
by creating subdoamins
It doesnt matter if it is subdomain or main domain. Unless you have very good content and good hits you are not creating a competition.
but why the wordpress, blogspot has
taken subdomains like if I create any
blog then in wordpress it would appear
like
http://www.health.wordpress.com... so
why it has taken subdomain...???
Its just their way of implementation. BTW this is not programming realted. So voted to close.