Url Forwarding

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Url Forwarding

whistle
URL forwarding is also called shot url. That is, use a short url to represent a long url. Thus less alphabats will be typed for go to a target website.

If you got a web hosting with the cpanel, you may find the url forwarding. There are two popular ways to make a url forwarding. One uses a subdirectory, and the other uses a subdirectory.

When I first time knew the url forwarding, I was interested in how it works. I think there are a lot of people who may be interested in to as me, so I try to discuss that in the thread.

When you have a cpanel, you may create a subdomain and forward it to a target url. May anyone provide his experience about how to use scripts, such as php, to implement a automatic service for others?

Using url forwarding by a directory could be much easier than the sundomain. A set of PHP scripts could implement such a service. Whenever a name is registered, a directory named as the registered name and a redirection file for forwarding, i.e. index.html or index.php, will be copy into said directory. Thus, when someone use a url such as http://domain/name, the redirection file will be responsed.

May anyone share some experience about this or related scripts here?

 

 

 


Reply

Nileshpatel
Hello

you can redirect your domain just change your nameserver from domain control panel and set aliasing/forwarding in Cpanel.you can also forward subdomain using add-on domain.

But care it will take 24-72 hour for propogate all over globe.




Reply

Spectre
If you're asking what I think you're asking - which is how to do you set up subdomains automatically without using cPanel (eg. through a script), in this case for the purpose of URL forwarding such as provided by CJB.net or CO.nr - then the short answer is, you can't.

The slightly longer answer is that you can add an 'A' record to your domain name (which is done via your domain registrar) to point all subdomains to yoursite.com (eg. *.yoursite.com -> xxx.xxx.xxx.xxx/your IP address) and have a script which would process requests according to the 'Host' header sent by the client. That way, virtual hosts are not set up on the server in the same way you would do with cPanel (or in your server configuration file, if you had access), and don't really 'exist'.

I hope that makes a little sense.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. mask url forward - 21.07 hr back. (1)
  2. php automatic url forward - 30.00 hr back. (1)
  3. url forward in html - 47.42 hr back. (1)
  4. php keyword url redirect - 56.74 hr back. (1)
  5. forward subdomain to php url - 66.70 hr back. (1)
  6. how to mask url link using cpanel? - 176.46 hr back. (1)
  7. "url forward" "a-record" - 227.89 hr back. (1)
  8. php build url redirect - 239.22 hr back. (1)
  9. ssh url forwarding - 273.38 hr back. (1)
  10. $_get tk domain - 324.95 hr back. (1)
  11. url forwarding for a directory - 366.11 hr back. (2)
  12. url forward html - 387.13 hr back. (2)
  13. ssh forward subdomain - 387.39 hr back. (1)
  14. cpanel domain redirect forward port - 392.57 hr back. (1)
Similar Topics

Keywords : url forwarding


    Looking for url, forwarding

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for url, forwarding

*MORE FROM TRAP17.COM*
advertisement



Url Forwarding



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE