Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

redirecting to an url with ? in it? [moved]

Discussion in 'General Discussion' started by HendrikGent, Sep 22, 2006.

  1. HendrikGent

    HendrikGent Member

    Joined:
    Apr 27, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    I would like to permantly redirect a few pages.
    Because the site has gone from a static to a dynamic one the links to the articles now get the article dynamic.

    So instead of /articles/article001.html it is now /articles.php?title=article001
    If I make this redirection in my cpanel the link is redirected to articles.php%3ftitle=article001
    Is there a way to make it work?
    Thanks
     
  2. Manuel_accu

    Manuel_accu Well-Known Member

    Joined:
    Jun 19, 2005
    Messages:
    191
    Likes Received:
    0
    Trophy Points:
    166
    Could you please paste the exact rewrite rule from your .htaccess?

    Thanks,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. HendrikGent

    HendrikGent Member

    Joined:
    Apr 27, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    Code:
    RedirectMatch temp ^/article001.html$ http://www.mydomain.com/articles.php?title=article001
    
    where mydomain is offcourse my real domain name :)
     
  4. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    How about the other way around, from a URL with a question mark to one with or without.

    With a %3f in it, Apache gives an error. With a question mark in it - Cpanel will not take it, and if added manually it is ignored (to htaccess.)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice