Page 16 of 17 FirstFirst ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast
Results 226 to 240 of 242
Like Tree1Likes

404 / 301 Tool After Import Redirect on ImpEx imported forums

This is a discussion on 404 / 301 Tool After Import Redirect on ImpEx imported forums within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi Antonio, You can try (right below 'RewriteEngine On'): RewriteCond %{QUERY_STRING} TID=([0-9]+) RewriteRule ^forum-dis1/forum_posts\.asp$ vbseo301.php?action=thread&oldid=%1 [L] RewriteCond %{QUERY_STRING} FID=([0-9]+) RewriteRule ...

  1. #226
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hi Antonio,

    You can try (right below 'RewriteEngine On'):

    RewriteCond %{QUERY_STRING} TID=([0-9]+)
    RewriteRule ^forum-dis1/forum_posts\.asp$ vbseo301.php?action=thread&oldid=%1 [L]

    RewriteCond %{QUERY_STRING} FID=([0-9]+)
    RewriteRule ^forum-dis1/forum_topics\.asp$ vbseo301.php?action=forum&oldid=%1 [L]
    Last edited by Andrés Durán Hewitt; 10-09-2011 at 04:20 PM.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  2. #227
    Member cionfs's Avatar
    Real Name
    Antonio
    Join Date
    Jul 2007
    Location
    Taranto, Italy, Italy
    Posts
    86
    Liked
    0 times
    Hi,
    I try to insert this line in my .htaccess and I've uploaded vbseo301.php but it doesn't work.

    Where should I put my .htaccess and vbseo301.php file? In the old folder or in the new folder?

    The old folder isn't redirect.

    Example: http://www.disabiliforum.com/forum-d....asp?TID=42681

  3. #228
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello Antonio,

    Put your vbseo301.php file in your 'new folder' and create an .htaccess with the following content in your 'old folder':

    RewriteEngine On

    RewriteCond %{QUERY_STRING} TID=([0-9]+)
    RewriteRule ^forum-dis1/forum_posts\.asp$ http://www.disabiliforum.com/forum/vbseo301.php?action=thread&oldid=%1 [L]

    RewriteCond %{QUERY_STRING} FID=([0-9]+)
    RewriteRule ^forum-dis1/forum_topics\.asp$ http://www.disabiliforum.com/forum/vbseo301.php?action=forum&oldid=%1 [L]
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  4. #229
    Member cionfs's Avatar
    Real Name
    Antonio
    Join Date
    Jul 2007
    Location
    Taranto, Italy, Italy
    Posts
    86
    Liked
    0 times
    Hi,
    I've followed the instruction but it doesn't work. :(

    Could it be caused by the DNS change?

  5. #230
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Did you change domains as well? this is designed for the 'same' site.

  6. #231
    Member cionfs's Avatar
    Real Name
    Antonio
    Join Date
    Jul 2007
    Location
    Taranto, Italy, Italy
    Posts
    86
    Liked
    0 times
    Hi Brian,

    is the same domain. I've change the folder. Old folder "forum-dis1", new folder "forum".

    I've also changed the DNS for the new hosting.

  7. #232
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hi Antonio,

    There seems to be an issue with the .htaccess file in either your new "forum/" directory or your old "forum-dis1/" directory. I would discard the vbseo301.php file, as the following URL takes you to a new vBSEO'ed thread:

    http://www.disabiliforum.com/forum/v...ad&oldid=42681

    What is the content of your .htaccess file in your 'forum/' folder?.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  8. #233
    Member cionfs's Avatar
    Real Name
    Antonio
    Join Date
    Jul 2007
    Location
    Taranto, Italy, Italy
    Posts
    86
    Liked
    0 times
    Is this

    Code:
    suPHP_ConfigPath /var/www/vhosts/disabiliforum.com/httpdocs/forum/
    <Files php.ini>
    order allow,deny
    deny from all
    </Files>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript application/x-httpd-php image/gif image/jpg image/png
    <FilesMatch "\\.(js|css|html|htm|php|xml|png|jpg|gif)$">
    SetOutputFilter DEFLATE
    </FilesMatch>
    
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    RewriteCond %{QUERY_STRING} TID=([0-9]+)
    RewriteRule ^forum-dis1/forum_posts\.asp$ vbseo301.php?action=thread&oldurl=%1 [L]
    
    RewriteCond %{QUERY_STRING} FID=([0-9]+)
    RewriteRule ^forum-dis1/forum_topics\.asp$ vbseo301.php?action=forum&oldurl=%1 [L] 
    RewriteCond %{HTTP_HOST} !^www\.disabiliforum\.com
    RewriteRule (.*) http://www.disabiliforum.com/forum/$1 [L,R=301]
    
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    RewriteBase /forum/
    
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]

    Must I remove this?

    Code:
    RewriteEngine On
    RewriteCond %{QUERY_STRING} TID=([0-9]+)
    RewriteRule ^forum-dis1/forum_posts\.asp$ vbseo301.php?action=thread&oldurl=%1 [L]
    
    RewriteCond %{QUERY_STRING} FID=([0-9]+)
    RewriteRule ^forum-dis1/forum_topics\.asp$ vbseo301.php?action=forum&oldurl=%1 [L] 
    RewriteCond %{HTTP_HOST} !^www\.disabiliforum\.com
    RewriteRule (.*) http://www.disabiliforum.com/forum/$1 [L,R=301]

  9. #234
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hi Antonio,

    I've responded to your ticket. Please continue with me over there.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  10. #235
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Update: The following custom ruleset did the trick:

    RewriteEngine On


    RewriteCond %{QUERY_STRING} TID=([0-9]+)
    RewriteRule ^forum_posts\.asp http://www.disabiliforum.com/forum/v...hread&oldid=%1 [L,R]


    RewriteCond %{QUERY_STRING} FID=([0-9]+)
    RewriteRule ^forum_topics\.asp http://www.disabiliforum.com/forum/v...forum&oldid=%1 [L,R]
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  11. #236
    Member cionfs's Avatar
    Real Name
    Antonio
    Join Date
    Jul 2007
    Location
    Taranto, Italy, Italy
    Posts
    86
    Liked
    0 times
    Hi. I've a question.

    Is a 301 redirect and not a 302 redirect?

    I've used this tool Check Server Headers Tool - HTTP Status Codes Checker - Advanced Version CSH Bot V3S and there are a lot of 302 and not 301 redirect.

  12. #237
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    depending on the format, it may 302 first to the look up url, then 301 to the true destination. It shouldn't double 301.

  13. #238
    Member cionfs's Avatar
    Real Name
    Antonio
    Join Date
    Jul 2007
    Location
    Taranto, Italy, Italy
    Posts
    86
    Liked
    0 times
    Is possible to do a direct 301?

  14. #239
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    In some cases, yes, but if a look up needs to happen, like it does here, then no. It needs to load the old url, 302 to vbseo.php?PARAMS with the params in tact, and then does the 301 to /some-nice-url-123/ as the destination.

  15. #240
    Junior Member
    Real Name
    katoona
    Join Date
    Nov 2011
    Posts
    4
    Liked
    0 times
    Quote Originally Posted by pelican View Post
    Quote Originally Posted by Andrés Durán Hewitt View Post
    Hello,

    Please try:

    RewriteCond %{QUERY_STRING} board,([0-9\.]+)\.html
    RewriteRule index\.php vbseo301.php?action=forum&oldid=%1 [L]

    RewriteCond %{QUERY_STRING} topic,([0-9\.]+)\.html
    RewriteRule index\.php vbseo301.php?action=thread&oldid=%1 [L]

    RewriteCond %{QUERY_STRING} topic,[0-9\.?]+\.msg([0-9]+)\.html
    RewriteRule index\.php vbseo301.php?action=post&oldid=%1 [L]

    I think it should work.
    This did not work for me, but the following worked:

    RewriteCond %{REQUEST_URI} index\.php/board,([0-9\.]+)\.html
    RewriteRule index\.php http://www.xxx.xxx/forum/vbseo301.ph...forum&oldid=%1 [L]

    In the link: www.smf-url.com/index.php/board,111.0.html the index.php? is replaced by index.php/ and therefore it is not a query string anymore, and hence the request_url.

    It works for me, but can anybody verify that this is correct, and that it won't cause any "side-effects"?

    All my old links (boards, topics) are getting redirected perfectly.

    Should there perhaps be a [R=301,L] instead of a [L]?

Page 16 of 17 FirstFirst ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 04-08-2008, 06:03 AM
  2. RC8 - CSS redirect for Moderator forums
    By skoenig in forum Bug Reporting
    Replies: 2
    Last Post: 01-23-2007, 08:43 PM
  3. 301 Redirect on Forums
    By tavenger5 in forum Custom Rewrite Rules
    Replies: 8
    Last Post: 05-23-2006, 10:46 PM
  4. The use of Impex to import a board
    By roadart in forum General Discussion
    Replies: 1
    Last Post: 05-13-2006, 07:53 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
  •