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.

subdomains - how to include a '%' sign?

Discussion in 'General Discussion' started by rsuplido, Oct 31, 2003.

  1. rsuplido

    rsuplido Registered

    Joined:
    Oct 3, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to redirect a subdomain to a URL with parameters. The original URL contains two '%' signs but after redirection, the '%' signs disappear and of course, an error occurs.

    Can anyone help?
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    RE: subdomains - how to include a

    Dear rsuplido,

    Cpanel will not accept the redirection of the URL with special characters. Try using RewriteRule in .htaccess or it can be done using the phpscript.

    For more information on rewrite rule please refer the following URL:
    http://httpd.apache.org/docs-2.1/mod/mod_rewrite.html#rewriterule

    If you want to use php script then try adding
    <? header(\"Location:http://yourwebsite.com/\"); ?>
    in index.php file.

    Regards,
     
Loading...

Share This Page