LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-08-2008, 03:35 PM   #1
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Redirect not working correctly


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

Any idea why?
 
  


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

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

All times are GMT -5. The time now is 03:56 PM.

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