Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Aug 23, 2010 12:00 pm 
Offline
Senior Newbie

Joined: Mon Aug 23, 2010 11:51 am
Posts: 7
Hi,

I really really need your help. I'm on Ubuntu Lucid and Apache2. I enabled mod_rewrite.
One thing who is really simple usually and I would like to implement, is redirect all no www request to www request (like domain.com to www.domain.com).
Usually, it's very simple. I use .htaccess to activate this rule:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

BUT it's not working. Why why why ???? :(. All others rules are working except this rule. Perhaps I forgot something.

Thanks for your help !
Julien


Top
   
 Post subject:
PostPosted: Mon Aug 23, 2010 12:05 pm 
Offline
Senior Newbie

Joined: Mon Aug 23, 2010 11:51 am
Posts: 7
Ah and I forgot something. I have this kind of message when I display domain.com


It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Crazy crazy crazy


Top
   
 Post subject:
PostPosted: Mon Aug 23, 2010 7:23 pm 
Offline
Newbie

Joined: Wed May 05, 2010 9:41 am
Posts: 2
Do you have a virtual host entry for domain.com pointing to the correct htdocs root?

Jon

_________________
Mirrorstone Crystals


Top
   
 Post subject:
PostPosted: Mon Aug 23, 2010 10:02 pm 
Offline
Senior Newbie

Joined: Mon Aug 23, 2010 11:51 am
Posts: 7
Yes yes. I checked again and again and my virtualhost is ok.


Top
   
 Post subject:
PostPosted: Tue Aug 24, 2010 9:19 pm 
Offline
Newbie

Joined: Wed May 05, 2010 9:41 am
Posts: 2
If you wanted to give me login details, I'd be happy to take a quick look at it.

(I do freelance sysadmin work, with some linode users among my clients).

Let me know

_________________
Mirrorstone Crystals


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group