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.

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:
    6
    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:
    6
    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