Webmaster Forum

Go Back   Webmaster Forum > Marketing Forums > SEO Forum

SEO Forum Search engine optimization discussions.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 08-24-2011, 09:25 PM
wulaishiwo's Avatar
wulaishiwo wulaishiwo is offline
Contributing Member
 
Join Date: 03-02-11
Location: China
Posts: 90
iTrader: 0 / 0%
Does the slash matter?

Does the slash matter in the end of url? what is the difference?

for example:

http://www.abe123/cdf and http://www.abe123/cdf/
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 08-24-2011, 10:28 PM
virtueinfo11 virtueinfo11 is offline
Banned
 
Join Date: 08-04-11
Posts: 283
iTrader: 0 / 0%
slash does not matter at the end of url? as you see on each url there is no any slash at the end of url...
 
Reply With Quote
  #3  
Old 08-24-2011, 10:43 PM
micoblanco's Avatar
micoblanco micoblanco is offline
v7n Mentor
 
Join Date: 10-12-08
Location: Pilipinas
Posts: 2,279
iTrader: 0 / 0%
If I get it correctly, you are referring to trailing slash. If so, my answer would be a yes. Yes, it matters (in search engine standpoint) because search engines will take the trailing slash and the no trailing slash versions of your site as two different URLs and might violate search engine guideline specifically, duplicate content.

Ways on how you can act regarding this issue:
  1. Use one version on URL and be consistent with it through out the site. If your site is using a folder structure, I would recommend you to use trailing slash for your URLs.
  2. Use rel="canonical"
  3. Implement 301 redirect

Hope that helps.
 
Reply With Quote
  #4  
Old 08-25-2011, 12:05 AM
sandip.rd's Avatar
sandip.rd sandip.rd is offline
Contributing Member
 
Join Date: 08-11-11
Location: Ahmedabad
Posts: 116
iTrader: 0 / 0%
There are duplication matter with slash and non slash url.

just we need to put <link> tag to specify our preferred version of url.
<link rel="canonical" href="http://www.xyz.com/phrase1-phrase2" />
inside the <head> section of the duplicate content urls.
"http://www.xyz.com/phrase1-phrase2/"
"http://www.xyz.com/phrase1-phrase2.html"

Use of punctuation in our urls. The url "http://www.xyz.com/phrase1-phrase2.html" is much more useful to google than "http://www.xyz.com/phrase1phrase2.html". Google recommend that we use hyphens (-) instead of underscores (_) in our urls.

Do use a robots.txt file to block bot's access to problematic urls.
 
Reply With Quote
  #5  
Old 08-25-2011, 04:50 AM
alok.kumar alok.kumar is offline
Contributing Member
 
Join Date: 05-02-11
Location: Gurgaon, India
Posts: 53
iTrader: 0 / 0%
Yes it does matter...When you go to a URL without the trailing slash, web server looks for a file with that name. If it doesn’t find a file with that name, then it looks for a directory and looks for the default file in that directory.
 
Reply With Quote
  #6  
Old 08-25-2011, 04:56 AM
CAPTAMERICA CAPTAMERICA is offline
Junior Member
 
Join Date: 08-20-11
Location: Sydney
Posts: 25
iTrader: 0 / 0%
I can explain this with an example i read sometime ago

Think of URLs as phone numbers. If you call 888-0100 you will reach the main switchboard, 888-0101 could be a fax, and 888-0109 may be a phone extension of yours. When you steal the last digit and only dial 888-010, you will tend to get nowhere… which states the last digit of a phone number and the trailing slash of a directory link aren’t much different.
 
Reply With Quote
  #7  
Old 08-27-2011, 02:39 AM
wulaishiwo's Avatar
wulaishiwo wulaishiwo is offline
Contributing Member
 
Join Date: 03-02-11
Location: China
Posts: 90
iTrader: 0 / 0%
Quote:
Originally Posted by micoblanco View Post
If I get it correctly, you are referring to trailing slash. If so, my answer would be a yes. Yes, it matters (in search engine standpoint) because search engines will take the trailing slash and the no trailing slash versions of your site as two different URLs and might violate search engine guideline specifically, duplicate content.

Ways on how you can act regarding this issue:
  1. Use one version on URL and be consistent with it through out the site. If your site is using a folder structure, I would recommend you to use trailing slash for your URLs.
  2. Use rel="canonical"
  3. Implement 301 redirect

Hope that helps.
HI, thanks for posting.

I am sorry didnot explain clearly, yes i am referring to trailing slash.

Does the url with trailing slash or not matter in seo?
 
Reply With Quote
  #8  
Old 08-27-2011, 04:01 AM
gazraz gazraz is offline
Contributing Member
 
Join Date: 08-15-11
Location: UK
Posts: 92
iTrader: 0 / 0%
If this is for SEO, it does not really matter, unless certain CMS/Ecommerce sites need them.

IF it's for a script setup, then yes, a lof of installs require a trailing slash (/) after the URL or main root directory.
 
Reply With Quote
  #9  
Old 08-27-2011, 05:48 AM
towelk's Avatar
towelk towelk is offline
Contributing Member
 
Join Date: 08-12-11
Location: PHL/WI
Posts: 114
iTrader: 0 / 0%
For an SEO perspective, Matt Cutts explain that it does not matter whether there is or no trailing slash at the end of the URL. What matters is the URL with www and without www, specially if you're starting building backlinks to it.

It was explained by Matt Cutts here, but somehow the video streaming on the link below is disabled... but that's the link where he discussed about the trailing slash.
Code:
http://www.seomoz.org/blog/whiteboard-interview-googles-matt-cutts-on-redirects-trust-more
 
Reply With Quote
  #10  
Old 08-27-2011, 02:48 PM
raxe's Avatar
raxe raxe is offline
Contributing Member
 
Join Date: 08-26-11
Location: London
Posts: 50
iTrader: 0 / 0%
There are two basic rules - an address with specified file at the end or not.

http://www.example.com/
http://www.example.com/folder/
http://www.example.com/file.html

As you can see, if you have a file name specified at the end, it is not correct to use the slash. If you do not specify the destination file, you should end the URL with '/'.

If you don't specify the file, the browser will automatically open index.html or index.php file. If such file won't exist in specified folder, you will get a 404 page not found result.

URL canonicalization is something slightly different. It is a process of choosing a preferred domain for your website.

Have a look at the examples:

http://www.example.com/

http://example.com/

http://www.example.com/index.html

http://example.com/home.asp

All the above mentioned URLs will take you to your homepage. The ranking of your website is spread amongst all possible choices. Through canonicalisation you can ensure that all credit goes to one URL which will score higher in search engines.

Have a look at this seo guide. It explains all ways to make your URL canonical.

Good luck

Last edited by raxe; 08-27-2011 at 02:51 PM.
 
Reply With Quote
Go Back   Webmaster Forum > Marketing Forums > SEO Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass slash / in an URL? yangyang Coding Forum 0 05-18-2011 03:33 AM
To Slash or Not To Slash geilt SEO Forum 0 05-10-2010 02:10 PM
301 redirect use trailing slash / for directory or not? ScriptMan Coding Forum 0 01-03-2010 10:06 AM
Trailing slash fromthe5 Coding Forum 6 01-10-2009 07:57 AM
Trailing slash in Apache John Scott Dedicated Servers 1 02-03-2004 08:30 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:45 PM.
Powered by vBulletin
Copyright © 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC