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.

htaccess help - 301 redirect

Discussion in 'PHP' started by uttoransen, Dec 24, 2008.

  1. #1
    uttoransen, Dec 24, 2008 IP
    Feizar likes this.
  2. maneetpuri

    maneetpuri Active Member

    Messages:
    152
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Hi,

    Try using this in your .htaccess file: -

    RewriteEngine On
    RewriteCond [put the old URL here] [NC]
    RewriteRule ^(.*)$ [Put the new URL here] [R=301,L]

    Hope this helps.

    Cheers,

    ~Maneet
     
    maneetpuri, Dec 24, 2008 IP
    uttoransen likes this.
  3. uttoransen

    uttoransen Prominent Member

    Messages:
    8,227
    Likes Received:
    550
    Best Answers:
    0
    Trophy Points:
    320
    #3
    hello friend,

    i got this from the wordpress htaccess file,

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress


    where should i add the code you posted above,

    thanks and regards,
    uttoransen,
     
    uttoransen, Dec 24, 2008 IP