Jump to content

Personal Shortened URL Script


jamiers

Recommended Posts

Hi Hak5'ers,

I am definitely a noob when it comes to coding -- I openly admit it. Before you flame me and try to get me to open a PHP book, I need to let you know that I am a teacher and this stuff doesn't come easy for me. I was wondering if someone would be able to help me out.

I want to put a short url script on my site (like Tiny URL). I have found a script called mlurl. This might be a good edition for hak5 too, especially if there are long addresses and they use tinyurl for them.

I have placed the files online at http://drop.io/linkshortener

Here is my issue. The script works great, if you use it in the following format: domain.com/mlurl/shortlink

I want to be able to do this instead: link.domain.com/shortlink. Does anyone have any ideas after looking at the included files? I tried the programmer, but he doesn't respond to my inquiries. I know how to create my subdomain. That isn't the issue. It is getting the script to recognize that it is link.domain.com instead of domain.com/link.

I see potential for this script, but I haven't been able to find anything out there to do what I am looking for.

Thanks for any help that you can provide.

Jamie

Link to comment
Share on other sites

First off, link.domain.com and domain.com are two seperate sites. They reside in the same domain name, but link.domain.com is a subdomain of domain.com or www.domain.com

You have to create the subdomain, either by way of your hosting company or control panel for your site(If it offerse the ability to make a subdomain)

Link to comment
Share on other sites

First off, link.domain.com and domain.com are two seperate sites. They reside in the same domain name, but link.domain.com is a subdomain of domain.com or www.domain.com

You have to create the subdomain, either by way of your hosting company or control panel for your site(If it offerse the ability to make a subdomain)

Yep, I have done that. link.domain.com resolves appropriately and shows the directory domain.com/link.

I forgot to include that in my original post.

Link to comment
Share on other sites

Well, where do you store the files? Should't your files be stored in the / (Root) directory for the subdomain? and not at /mlurl/

Link to comment
Share on other sites

Well, where do you store the files? Should't your files be stored in the / (Root) directory for the subdomain? and not at /mlurl/

Correct, I store them in the root.... but when I do that, the redirection doesn't work any more. It only brings up the administration page and provides no redirection.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...