1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Trailing slash in url

Discussion in 'Search Engine Optimization' started by bbharath, Oct 6, 2018.

  1. #1
    I got some problems in Console as trailing slash and without trailing slash makes duplicate content. Can you tell me which should I choose the best structure.
    domain.com/title
    or domain.com/title/
    or https://www.domain.com/title
    or
    https://www.domain.com/title/

    it is on wordpress CMS and built long back however lost rank in serp from last 3 months.
     
    bbharath, Oct 6, 2018 IP
  2. SaleSmith

    SaleSmith Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    "/title" means the page.
    "/title/" means the main page of section.
    The difference is the same as between a folder and a concrete file in Windows.
     
    SaleSmith, Oct 7, 2018 IP
  3. Blue Star Ent.

    Blue Star Ent. Well-Known Member

    Messages:
    1,989
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Leave off the last trailing slash. To a bot I believe it means "index.html" of the next folder.
     
    Blue Star Ent., Oct 7, 2018 IP
  4. bbharath

    bbharath Well-Known Member

    Messages:
    254
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Thanks for your replies, Google console detected as it is duplicate so how can I remove the non trailing slash urls from Console.
     
    bbharath, Oct 9, 2018 IP
  5. SaleSmith

    SaleSmith Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    The most easy way do it via 301 redirect in .htaccess.
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)/$ /$1 [R,L]
    Code (ApacheConf):
    I hope it helps you.
     
    SaleSmith, Oct 11, 2018 IP