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!

SymLink to new folder - rewrite [moved]

Discussion in 'General Discussion' started by wookiee, Mar 25, 2006.

  1. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Las Vegas
    I have a folder that needed a new name. (was 'tgsw', now 'ultra')
    The old name needs to remain active for users who have saved that url.

    I asked the admins for a symlink 'tgsw' & 'tu' to the renamed folder 'ultra', but instead they put the following in htaccess, which does not work.....




    RedirectMatch permanent ^/tgsw/*$ http://mydomain.com/ultra/*

    RedirectMatch permanent ^/tgsw/*$ http://mydomain.com/ultra/

    RedirectMatch temp ^/tu$ http://mydomain.com/ultra/

    I'd rather have a symlink, but since I'm a reseller, I'm at their mercy.

    Any ideas what needs to be changed, to get it to work?

    I tried cpanel's rewrite, but that didn't work either.
     
    #1 wookiee, Mar 25, 2006
    Last edited: Mar 26, 2006
  2. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Las Vegas
    RedirectMatch 301 ^/tgsw/(.+)$ http://mydomain.com/ultra/$1
    RedirectMatch 301 ^/tu/(.+)$ http://mydomain.com/ultra/$1

    The above work

    I'd rather have the symlinks though.

    I tried the php work around

    <?php
    symlink( '/ultra/', 'tgsw' );
    ?>

    but got

    Warning: symlink(): Permission denied in /home/mydomain/public_html/link.php on line 2
     
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