Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th August 2009, 19:00
MDee MDee is offline
Junior Member
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Force specific page upon access?

Hey everybody,
I recently took my old XP desktop and made the jump to a Linux kernel Centos distribution for a personal webserver. Everything's working great, although I still have a lot to learn...which leads me to my question! I'd like to force all accesses to my domain to go to a specific page. So if a user tried to go to www.mydomain.com/foobar or www.mydomain.com/bankaccounts.html or anything like that it would redirect all of those to a page of my choosing. I tried placing the line
'redirect 301 / http://www.mydomain.com/' in a .htaccess file in the root dir of my server, but this caused an infinite looping of redirects (or so firefox and chrome claimed). Can anybody help me out with this?
Thanks!
-Mark
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Smokeping a specific web page runsome Installation/Configuration 2 30th April 2009 15:40
Double question: Apache mod_proxy and force connection over specific interface Nukien Server Operation 1 8th January 2008 00:16
ISPConfig Installation complete but Cannot access page with IP (Debian 3.1) alexan HOWTO-Related Questions 10 24th December 2006 13:33
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
Everything is working except Access denied page SeaWolf Installation/Configuration 2 10th December 2005 15:16


All times are GMT +2. The time now is 01:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.