Results 1 to 4 of 4

Rewritten URLs are redirected to original URLs

This is a discussion on Rewritten URLs are redirected to original URLs within the General Discussion forums, part of the vBulletin SEO Discussion category; Dear Customers, since the upgrade from apache2 to nginx I have two problems. This problem is very important to fix ...

  1. #1
    Member Array eJunkie's Avatar
    Real Name
    Sascha
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    53
    Liked
    0 times

    Exclamation Rewritten URLs are redirected to original URLs

    Dear Customers,

    since the upgrade from apache2 to nginx I have two problems.
    This problem is very important to fix asap.

    Forum: Katzen Forum

    If you click on the last post (right side), sometimes you will be redirected to the original URL (showthread.php).

    Normaly any original URL should be redirect to the rewritten URL.

    Here is my nginx vhost config:

    Code:
    server {        listen 80;
            server_name katzen-forum.de *.katzen-forum.de;
    
    
            root /srv/www/katzen-forum.de/htdocs;
    
    
            access_log /srv/www/katzen-forum.de/logs/access.log apache;
            error_log /srv/www/katzen-forum.de/logs/error.log error;
    
    
            if ($host !~* "^www.katzen-forum.de$"){
                    rewrite ^(.*)$ http://www.katzen-forum.de$1 permanent;
                    break;
            }
    
    
            location ~ /vbseo/(includes|resources/html|resources/xml)/ {
                    allow  127.0.0.1;
                    deny   all;
            }
    
    
            location / {
                    index  index.html index.htm index.php;
                   rewrite ^/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
                   try_files $uri $uri/ /vbseo.php?$args;
            }
    
    
            location ~ \.php$ {
                    fastcgi_pass   katzenforum_backend;
                    fastcgi_index  index.php;
                    fastcgi_param  SCRIPT_FILENAME /srv/www/katzen-forum.de/htdocs$fastcgi_script_name;
                    include        fastcgi_params;
            }
    
    
           location ~ /(.*\.php)$ {
                   rewrite ^/(.*)$ /vbseo.php last;
           }
    
    
            location ~ /\.ht {
                    deny  all;
            }
    
    
            include vhosts/error;
    }
    Last edited by eJunkie; 07-27-2012 at 10:37 AM. Reason: update vhost config

  2. #2
    vBSEO Staff Array Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,859
    Liked
    567 times
    Blog Entries
    2
    Hello,

    Can you try to change this:

    fastcgi_param *SCRIPT_FILENAME /srv/www/katzen-forum.de/htdocs$fastcgi_script_name;

    to:

    fastcgi_param SCRIPT_FILENAME /srv/www/katzen-forum.de/htdocs/vbseo.php;
    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


  3. #3
    Member Array eJunkie's Avatar
    Real Name
    Sascha
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    53
    Liked
    0 times
    Yes, it works but other addons don't work with script_filename @vbseo.php.

    This works:

    http://www.vbseo.com/f77/cant-move-p...89/#post333182

  4. #4
    vBSEO Staff Array Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,859
    Liked
    567 times
    Blog Entries
    2
    Good to know. Thank-you, Sascha!
    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


Similar Threads

  1. vBulletin 3.x 'Replace Original Anchor Text' not working for some URLs
    By Marvin Hlavac in forum Troubleshooting
    Replies: 8
    Last Post: 08-25-2010, 02:34 PM
  2. How To get URLS Posted redirected?
    By Brandon_R in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 11-12-2008, 09:34 PM
  3. 404 on rewritten URLs
    By Imperial in forum Troubleshooting
    Replies: 1
    Last Post: 09-29-2007, 08:51 PM
  4. Rewritten URLs appear to be incorrect
    By jamesk in forum Troubleshooting
    Replies: 7
    Last Post: 01-23-2006, 04:42 PM

Tags for this Thread

Posting Permissions

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