Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Location
    Kelowna, BC, Canada
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    & Symbol in directories?

    Hey there,

    I was given a script and there's about 100+ directories that have the percentage symbol (%) in them. However, it doesn't look like apache let's me view these directories from a browser, however it does allow me to view the ones using $. Anybody know how I can edit the apache configs to allow percentage symbols?

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    It isn't really a problem with Apache per-se. The percent sign is a special character in URLs which means you need to escape it.

    There is a handy table of escape characters on this page: http://www.werockyourweb.com/url-escape-characters
    OracleGuy

  • #3
    New to the CF scene
    Join Date
    Jun 2011
    Location
    Kelowna, BC, Canada
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I kind-of described it as an escape/urlencoded character but this is what I mean:


    They're actually directories in which have been named with a % in them :/

    Example:
    http://seksimac.com/$external_c/stencil/

    I setup the same script on an older server of mine and it works perfect, but I need it to work on this server :/
    Last edited by KyleP; 07-06-2011 at 10:17 PM.

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Was the old server running an older version of Apache?

    You might be able to work around the problem using mod_rewrite. If that is what the old server is doing then it would be a simple matter of moving the rules over.

    As the link I suggested in my last post indicates you'd need to escape the special character(s).

    http://seksimac.com/$external_c/stencil/
    would need become:
    http://seksimac.com/%24external_c/stencil/
    OracleGuy

  • #5
    New to the CF scene
    Join Date
    Jun 2011
    Location
    Kelowna, BC, Canada
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by oracleguy View Post
    Was the old server running an older version of Apache?

    You might be able to work around the problem using mod_rewrite. If that is what the old server is doing then it would be a simple matter of moving the rules over.

    As the link I suggested in my last post indicates you'd need to escape the special character(s).

    http://seksimac.com/$external_c/stencil/
    would need become:
    http://seksimac.com/%24external_c/stencil/
    Thanks for the help! mod_rewrite is already enabled due to cPanel/whm. $external_c is working fine, it displays in the browser, but any folder that has the name %%51 or something along those lines will not display.
    If you goto http://matchsingles.org it loads perfect, however at http://seksimac.com it does not. Both are running the same script, same htaccess settings. Both run off cpanel/whm and automatically include mod_rewrite.

    I can't seem to find what I'm missing! I've been spending ours on this problem, in-which is probably something simple :/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •