Forum Moderators: Robert Charlton & goodroi
Using an extension like .html locks you into that file format.
RewriteRule ^paintings/mice/([a-jw]\w+)\.html /paintings/critters/critterlinks.php?subdir=mice&page=$1 [L,NS]
RewriteRule ^fun/CheesyNovel/chap(\d+)\.html /fun/CheesyNovel/cnlinks.php?chapter=$1&page=CheesyNovel [L]
So the options are www.mysite.com/category (without slash) or www.mysite.com/category/ (with slash) and of course the www.mysite.com/category.html
And I guess actually the home page as well would be included in the mix?
Assuming there are pages below the category level (and why else would you have categories), it would make most sense to me to use /category/, as a subpage might be /category/item or /category/subcategory/item
because Google seems to be having issues with our category pages
No more than going extensionless...
The forward slash allows publishers to change technologies and keep the URLs the same. The actual URL could be changed to /index.html or /index.php but the URL structure remains the same forward slash: example.com/somefile/.
Using the forward slash gives you the flexibility of not having to use a redirect at all, ever.
The actual URL could be changed to /index.html or /index.php but the URL structure remains the same forward slash: example.com/somefile/.
example.com/somefile/index.html example.com/somefile/index.php [edited by: martinibuster at 3:17 am (utc) on Dec 30, 2013]
Anything that makes it easier to remember or type your URL is going to help others to link to your site.
1. If you change technologies and all of a sudden have to do this:
example.com/somefile/index.html
You can keep your original URL without a rewrite/redirect:
example.com/somefile/
2. If you change technologies and have to change URLs to this:
example.com/somefile/index.php
You can keep your original URL without a rewrite/redirect:
example.com/somefile/
DirectoryIndex any-random-garbage.xtn 1. If you change technologies and all of a sudden have to do this:
example.com/somefile/index.html
You can keep your original URL without a rewrite/redirect:
example.com/somefile/
2. If you change technologies and have to change URLs to this:
example.com/somefile/index.php
You can keep your original URL without a rewrite/redirect:
example.com/somefile/
5. A further benefit is of course links. Anything that makes it easier to remember or type the URL of any of your web pages is going to help others to link to your pages. URLs with multiple hyphens or random extensions are hard to remember. How is someone going to recall dot html or dot htm or dot php (not to mention hyphens) in order to speak, print or link to a complicated URL? Why would any web publisher put themselves at such a disadvantage?
3. If you move your site to WordPress or pretty much any CMS, you can keep your URLs without a rewrite or redirect.
I am trying to determine a strange thing Google has been doing on a few of the sites on the server. Back when Panda was released, shortly after we noticed that for our category pages, the targeted keywords for a particular category were no longer pointing to the category page for that term. Google was associating really stupid pages for the terms, like the F&Q page or a product page with little or no relevance, etc.
...it's completely driven by rewriting when "search friendly" URLs are used...
Yes, there's internal rewriting going on BUT
If you have a choice between doing something that may need a URL rewrite down the road at some point and doing it in a manner that does not, best practice is to choose the simpler option.
You're quibbling about backend rewriting. Has nothing to do with what I'm talking about.