SymLink to new folder - rewrite [moved]

wookiee

Well-Known Member
Feb 28, 2005
48
0
156
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.
 
Last edited:

wookiee

Well-Known Member
Feb 28, 2005
48
0
156
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