Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-01-2007, 04:40 AM
|
#1
|
Member
Registered: May 2006
Distribution: Fedora 7
Posts: 34
Rep:
|
Redirect page
how to make this happen ?
if i want each time user try to browse any page for internet/local...it will redirect to a certain/start page
Last edited by koscek; 11-01-2007 at 04:47 AM.
|
|
|
11-01-2007, 05:33 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
can you explain more about what you're doing? are you intercepting requests or you do want to write certain web pages which will redirect to somewhere else? for the latter, a simple html meta-refresh will do it in one line, btu the former is more involved. more details please!
|
|
|
11-01-2007, 06:36 AM
|
#3
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
like this?
Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Billy's Home Page</TITLE>
<meta http-equiv="refresh"
content="0; URL=./cgi-bin/index.cgi" />
</HEAD><BODY></BODY>
content="0" is the delay in seconds
Last edited by bigearsbilly; 11-01-2007 at 06:38 AM.
|
|
|
11-01-2007, 07:56 AM
|
#4
|
Member
Registered: May 2006
Distribution: Fedora 7
Posts: 34
Original Poster
Rep:
|
let say, when user open their browser application and want to surf it will automatically redirect the page to certain page
|
|
|
11-01-2007, 10:42 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
er, i just showed you a method
??
|
|
|
11-01-2007, 11:51 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well no is *looks* like they want to control users on a LAN, in which case we need more information about your network, services and overall topology
|
|
|
11-01-2007, 03:08 PM
|
#7
|
Member
Registered: May 2006
Distribution: Fedora 7
Posts: 34
Original Poster
Rep:
|
pardon
i want to redirect it to front page of my local web server (apache)
|
|
|
11-01-2007, 03:10 PM
|
#8
|
Member
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669
Rep:
|
Code:
<html>
<body>
Click here to go to the right page:<br>
<a href="correct_target.html" target="_self">link</a>
</body>
</html>
Not an automagical redirection, but still works.
Did you try what bigearsbilly suggested?
|
|
|
11-01-2007, 04:54 PM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
still seems to me like you've still not actually defined your situation to any useful extent.
|
|
|
11-02-2007, 04:29 AM
|
#10
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
i give up
|
|
|
All times are GMT -5. The time now is 02:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|