Trying to Redirect does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmquist
    Senior Member
    • Jan 2006
    • 233
    • 5.7.X

    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
  • pmquist
    Senior Member
    • Jan 2006
    • 233
    • 5.7.X

    #2
    Bump

    Comment

    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24287
      • 6.0.X

      #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
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      • pmquist
        Senior Member
        • Jan 2006
        • 233
        • 5.7.X

        #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

        • twistsol
          Senior Member
          • Mar 2015
          • 128
          • 6.X

          #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...