Click to See Complete Forum and Search --> : which url is better
stephan.gerlach
09-18-2008, 05:09 AM
I am creating a website in php and use mod_rewrite to make the url's more search engine friendly.
But which one would be better?
1. mydomain.com/something/goes/here
or
2. mydomain.com/something/goes/here/
what do you think?
Gtwlabs
09-19-2008, 05:28 AM
For URLS in Google, I would recommend using dashes.
Mydomain.com-something-gohere
because this is Much Better for search engines.
Let me know if you have any Q's about URL strucutre.
Paul
LO))L
09-22-2008, 05:42 AM
mydomain.com/something-goes-here/
stephan.gerlach
09-24-2008, 09:12 AM
well I know that hyphens is the way to go but that wasn't actually my question. It's because I gave a bad example.
All I wanted to know if it is better to have a trailing slash or not.
And since we speak about urls what would be the best way to have the url displayed if you have results over multiple pages.
like
mydomain.com/category-name/page-2/
mydomain.com/category-name/category-name-page-2/
really don't know. Any of you?
bizcoaching
10-05-2008, 02:10 PM
I don't know what is the different between with "/" from without. :) I guess, this is more okay that it has "/".
Shorts
10-05-2008, 02:30 PM
I would say go with the '/' so it knows its a directory and not a file named that.
In all actuality shouldn't really make a difference though. If you're doing a mod rewrite, do it for both, with and without the slash.
Jeff Mott
10-05-2008, 03:50 PM
I would say go with the '/' so it knows its a directory and not a file named that.Well since the OP is using mod_rewrite, it isn't a directory either.
stephan, the answer is it really doesn't matter. Search engines and browsers will still access your site just as easily either way. My preference is to leave the trailing slash off, since your path really isn't a directory. But most leave it on since that's how URLs look most of the time.
So no advantages or disadvantages. Just pick the one you like the best.
Shorts
10-05-2008, 11:00 PM
Well since the OP is using mod_rewrite, it isn't a directory either.
stephan, the answer is it really doesn't matter. Search engines and browsers will still access your site just as easily either way. My preference is to leave the trailing slash off, since your path really isn't a directory. But most leave it on since that's how URLs look most of the time.
So no advantages or disadvantages. Just pick the one you like the best.
My bad, didn't notice the mod_rewrite in the original post.
HostColor
10-08-2008, 01:12 PM
I would go for mydomain.com/something/goes/here I know that some say that "/" is important, but I've tested URLs like "mydomain.com/something/goes/here" and they work fine.