Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241
Rep:
how do i do this with apache?
Hi, im using apache version 1.3 and i need to know how to do something.
I am trying to redirect users that come to the site to the /var/www/htdocs/modules/news. I tried the option DocumentRoot, but the problem with that is it wont let the files in modules/news use things lower than the modules folder, so basically it wont work like that.
Is there an option to just link them to that when visitors go to the root of the website instead of actually setting that as the root?
depending on what "/var/www/htdocs/modules/news" is, this may or may not work.
You can simply sym-link index.html in your DocumentRoot directory to the news page you want to use. However this could cause some problems, especially if what you have in news is a PHP / other script. Another complication is if /var/www/index.html actually exists and is a valid page you want to visit. If it's a valid page, then the best I can recommend is something like page-redirection based on referrer fields, but that could come un-stuck if people turn it off for privacy reasons. (sorry, I can't give advice on that, I have never learnt HTML/JS)
This will definitively redirect the user... If META tag is misunderstood, it will start the JavaScript function... If it goes wrong now, well they have a serious problem... You might want to add a text in the body with something like: Redirecting you, if not working, <a href="your-url">click here</a. ... Just to make your visitors have the possibility to escape...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.