Results 1 to 9 of 9

Redirect url

This is a discussion on Redirect url within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, Can someone please provide the exact command in htaccess for redirecting old url to new url. I want to ...

  1. #1
    Member Array
    Join Date
    Nov 2005
    Posts
    90
    Liked
    0 times

    Redirect url

    Hi,

    Can someone please provide the exact command in htaccess for redirecting old url to new url.

    I want to redirect
    www.domain.com/archive/index.php/t-1283.html

    to:
    www.domain.com/archive/index.php/t-8132.html

    btw I use the httpd.conf. Should I place it there or in htaccess in my forum directory?

    Thanks in advance

  2. #2
    ADM
    ADM is offline
    Senior Member Array ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    try:

    RewriteRule ^archive/index.php/t-1283.html$ /archive/index.php/t-8132.html [L,R=301]

  3. #3
    Member Array
    Join Date
    Nov 2005
    Posts
    90
    Liked
    0 times
    Hi,

    It didn't work. It just directs me to the homepage.

  4. #4
    ADM
    ADM is offline
    Senior Member Array ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    Sorry try this:

    RewriteRule ^archive/index.php/t-1283.html$ /forum/archive/index.php/t-8132.html [L,R=301]

    Replace forum with whatever directory your forums is in. Then add that line to just under the RewriteEngine On in your .htaccess in your forums folder.

  5. #5
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Also, when using httpd.conf approach, you may need to add a leading "/" character:
    RewriteRule ^/archive/index\.php/t-1283\.html$ /archive/index.php/t-8132.html [L,R=301]
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Member Array
    Join Date
    Nov 2005
    Posts
    90
    Liked
    0 times
    Hmm,

    I have tried adding that into my htaccess but it doesn't work.

  7. #7
    ADM
    ADM is offline
    Senior Member Array ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    Are your folders in a subdomain or a folder off your domain or are they in a root directory? The more information you let us know about about your setup the easier it is to write out a rewrite command.

    Are you using .htaccess or http.conf?

  8. #8
    Member Array
    Join Date
    Nov 2005
    Posts
    90
    Liked
    0 times
    They're in a root directory and I am using httpd.conf but I put in htaccess.

  9. #9
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    PM sent
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Redirect error
    By phkk in forum Troubleshooting
    Replies: 5
    Last Post: 04-17-2006, 02:47 PM
  2. Redirect
    By MSJA in forum Troubleshooting
    Replies: 2
    Last Post: 01-27-2006, 03:24 AM
  3. Best way to redirect when moving URLS?
    By Spitfire in forum General Discussion
    Replies: 1
    Last Post: 11-03-2005, 08:50 AM
  4. Best way to redirect my old forum to vb using 301
    By Bellinis in forum General Discussion
    Replies: 11
    Last Post: 10-29-2005, 09:03 PM
  5. Incorrect 301 redirect?
    By SEO Report in forum Bug Reporting
    Replies: 2
    Last Post: 08-25-2005, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •