Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-08-2008, 02:35 PM   #1
Zeno McDohl
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Redirect not working correctly

I have this in my .htaccess
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ [R=301,L]
It works okay, except it removes the www. So when someone goes to the domain, it takes them to:

Any idea why?


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
make redirect not working-pl help mselvam Linux - General 4 07-08-2005 04:01 PM
make output redirect not working-pl help mselvam Programming 1 07-06-2005 10:50 AM
RedHat 7.2 firewall. Redirect FTP is not working. cybermante Linux - Networking 2 06-06-2005 02:11 PM
PHP not working correctly AMMullan Programming 4 07-07-2004 02:32 PM
REDIRECT port 80 to 8080 not working dwynter Linux - Networking 2 06-25-2003 08:06 AM

All times are GMT -5. The time now is 08:33 PM.

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