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.

Url Issue

Discussion in 'HTML & Website Design' started by gianlucaorlandi, Mar 21, 2013.

  1. #1
    Hi everyone,

    Does anyone knows why in the same website some pages are displayed with the final slash and some others without?

    See the following example:

    www.example.com/page-one/

    www.example.com/page-two

    Thanks!
     
    gianlucaorlandi, Mar 21, 2013 IP
  2. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #2
    you can set same URL for each pages using .HTACCESS
     
    creativewebmaster, Mar 21, 2013 IP
  3. Eilidh Martin

    Eilidh Martin Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    You can read this blog post: http://googlewebmastercentral.blogspot.in/2010/04/to-slash-or-not-to-slash.html
     
    Eilidh Martin, Mar 21, 2013 IP
  4. gianlucaorlandi

    gianlucaorlandi Active Member

    Messages:
    38
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4

    Thanks a lot for your tip! Do you know how to edit the file?
     
    gianlucaorlandi, Mar 21, 2013 IP
  5. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #5
    you can try this :

    
     
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} (.*)$
    RewriteRule ^(.+)/$ http://www.domain.com/$1 [R=301,L]
    
    Code (markup):
     
    themes4all, Mar 21, 2013 IP
  6. tricks2

    tricks2 Active Member

    Messages:
    427
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #6
    To slash or not to slash?

    http://stackoverflow.com/questions/2743849/url-structure-preference-to-slash-or-not-to-slash
    or
    http://stackoverflow.com/questions/2743849/url-structure-preference-to-slash-or-not-to-slash
     
    tricks2, Mar 22, 2013 IP