LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2004, 07:03 PM   #1
Vatoloco
LQ Newbie
 
Registered: Jun 2004
Posts: 6

Rep: Reputation: 0
What would cause www to disappear?


I'm running redhat linux with apache and if I navigate to my site without ending in a / then it basically redirects and strips off the worldwideweb.

It's kind of hard to explain without showing an example, but I'm not allowed to type URL's.
 
Old 06-20-2004, 07:06 PM   #2
fenderman11111
Member
 
Registered: Jun 2004
Location: Denton
Distribution: debian, freebsd
Posts: 121

Rep: Reputation: 15
are you talking about the site that runs off your apache?
 
Old 06-20-2004, 07:15 PM   #3
Vatoloco
LQ Newbie
 
Registered: Jun 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Yep. So I guess that means it's an apache setting? I figured it was probably something in the .htaccess but I'm not sure what would do it. I've tried temporary deleting .htaccess and get the same results.
 
Old 06-20-2004, 07:34 PM   #4
Vatoloco
LQ Newbie
 
Registered: Jun 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I found a way around it. I was searching on another forum and came across a suggestion to add the following to your .htaccess:

Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} =domain.com [NC]
RewriteRule ^ http://www.domain.com%{REQUEST_URI} [R,L]
I think there is a way to do this serverwide though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IP disappear after reboot... frankpretec Linux - Networking 1 04-07-2005 02:37 PM
will everything disappear, when i install? iurodivii Linux - Newbie 6 01-29-2005 04:25 AM
difference between www.google.com/linux and www.google.com dr_zayus69 General 4 01-12-2005 03:45 PM
Why do some commands disappear??? mandelchan Linux - General 8 04-22-2004 01:50 PM
Just bought www.helpwithlinux.net and www.helpwithwindows.com Whitehat General 15 05-08-2003 01:31 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration