LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 06: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, 06: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, 06: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



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 01:37 PM
will everything disappear, when i install? iurodivii Linux - Newbie 6 01-29-2005 03:25 AM
difference between www.google.com/linux and www.google.com dr_zayus69 General 4 01-12-2005 02:45 PM
Why do some commands disappear??? mandelchan Linux - General 8 04-22-2004 12:50 PM
Just bought www.helpwithlinux.net and www.helpwithwindows.com Whitehat General 15 05-08-2003 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 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
Open Source Consulting | Domain Registration