rewrite coding issue in php

Discussion in 'PHP' started by khushi1049, Nov 24, 2009.

  1. #1
    Dear friends,

    I have a problem with my client website.

    my client website is xyz.com/abc.php but unfortunately one of our external link webmaster has given slash at the end of the url as xyz.com/abc.php/

    now problem is google is reading text version pages of all the abc.php as duplicate content pages as cache text only version.

    My webdeveloper has confirmed that these type of text version pages are not available in our root directory.

    Then how google is creating new pages in text version and indexing.

    is there is any problem in writing rewriting code?

    Kindly help me out/
     
    khushi1049, Nov 24, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Something like this in your .htaccess file should do it
    RewriteEngine on
    RewriteBase /
    
    RewriteRule ^(*\.php)/$ $1 [R=301,L]
    Code (markup):
     
    JAY6390, Nov 24, 2009 IP
  3. govind

    govind Member

    Messages:
    119
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    ya there is issue in url rewriting kindly check youur .htaccess file
     
    govind, Nov 25, 2009 IP