LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What would cause www to disappear? (https://www.linuxquestions.org/questions/linux-newbie-8/what-would-cause-www-to-disappear-195752/)

Vatoloco 06-20-2004 06:03 PM

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.

fenderman11111 06-20-2004 06:06 PM

are you talking about the site that runs off your apache?

Vatoloco 06-20-2004 06:15 PM

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.

Vatoloco 06-20-2004 06:34 PM

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.


All times are GMT -5. The time now is 04:09 AM.