Results 1 to 5 of 5

Strange redirect to forums path

This is a discussion on Strange redirect to forums path within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi there! Thanks in advance for your help. I have an .htaccess file in my root: Originally Posted by root ...

  1. #1
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    116
    Liked
    0 times

    Exclamation Strange redirect to forums path

    Hi there! Thanks in advance for your help.

    I have an .htaccess file in my root:

    Quote Originally Posted by root .htaccess
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.aelyria\.com
    RewriteRule (.*) http://www.aelyria.com/$1 [R=301,L]
    So someone who would enter Aelyria Links gets the URL rewritten to Aelyria Links. This works pretty much fine, however, until someone enters http://aelyria.com/forums which instead gives them a 404 error. However, if you look at the URL to which they were directed (Firefox will show it), it looks like vbSEO redirected them to my Forums Path --

    http://www.aelyria.com/forums//kunde...aelyria/forums

    Obviously, this isn't the corrected URL to my forums. Any way we can fix this?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    116
    Liked
    0 times
    Thanks, but, unfortunately, that didn't help. I added the rule in question, but it's still not making a difference. Did I add the rule incorrectly? Here's what I have:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.aelyria\.com
    RewriteRule (.*) http://www.aelyria.com/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
    RewriteCond %{HTTP_HOST} !^www\.aelyria\.com
    RewriteCond %{REQUEST_URI} forums/
    RewriteRule (.*) Aelyria [R=301,L]
    Last edited by Kaelon; 08-18-2007 at 12:56 AM.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    you should add that to the forums .htaccess, not to the root one.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    116
    Liked
    0 times
    Thanks, Oleg! That did it.

    For other users who may experience this problem, the default forums .htaccess that comes with vbSEO already has that rewrite cond in place, so you will have to replace it.

Similar Threads

  1. 301 fügt ?vbseourl= mit an
    By Junior in forum Deutsch
    Replies: 8
    Last Post: 11-20-2006, 02:07 PM

Posting Permissions

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