Jump to content

Create Symbolic link

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
cakka

cakka

    Programmer

  • Members
  • PipPipPipPip
  • 192 posts
Hi, i want to create alias link with symbolic link...
I want to add /superadmin link to the url to go to the admin page...
So, if someone go to www.mysite.com/superadmin... it will load the website from /public_html... it just give other template... for /superadmin... i have created php to check the link and give the template for the page /superadmin

But i am failed when creating symbolic link.. when i go to /superadmin.. it give my page not found :(
Please tell me the way :)

Thanks

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
you need to add an .htaccess file to enable this behaviour, if you're using apache at least.
I'm not good at writing those though.

#3
thomas73

thomas73

    Newbie

  • Members
  • Pip
  • 9 posts
edit your .htaccess file and add these lines.

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^superadmin$ /admin.php [L]

admin.php is the landing page, change it to where do you want your link to go