Announcement

Collapse
No announcement yet.

Trying to Redirect does not work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to Redirect does not work

    Hi all,

    I dont have much knowledge about redirects, but in vB4 I used the .htacces-file to create useful redirects so that for example www.utkiken.net/fire pointed to a specifik post or search. When I try to do that in vB5 pointing to searches is no problem but when pointing to a specific post the URL is correct but with an added ?routestring after the URL. For example this http://www.utkiken.net/node/43156?routestring=vindgbg. That extra addition makes an invalid URL.

    Is there an easy way to fix this?

    Regards / PerOla

  • #2
    Bump

    Comment


    • #3
      vB5 uses redirects itself so you may have trouble getting stuff like that working.

      You're probably better trying to redirect to the full post URL rather than the node shortcut.
      MARK.B
      vBulletin Support

      Comment


      • #4
        Thanks Mark.B,

        Well I tried that as well and it returns the same ending at the end of the URL. Like this for example: http://www.utkiken.net/forum/dokumen...string=altsyst. Which returns a not valid page-URL.

        In the .htaccess there is a part about "MainRedirect"
        Code:
            # Main Redirect
            RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]
        Could that have something to do with it, and in that case, would it be possible to add something that made an exception for all the node links?

        Comment


        • #5
          In your redirect, try adding a ? after the url you are redirecting to. I did this with a number of our old articles I had to redirect and it solved the issue.

          Comment

          Related Topics

          Collapse

          Working...
          X