The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    16
    Could you please paste the exact rewrite rule from your .htaccess?

    Thanks,
     
  3. HendrikGent

    HendrikGent Member

    Joined:
    Apr 27, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
    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.)
     
Loading...

Share This Page