LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-06-2012, 01:20 PM   #1
wilkos73
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Rep: Reputation: Disabled
301 not working


I am using the following rewrite rule for my website but still getting a 404 error. Can someone please let me know where I went wrong?

RewriteRule ^current_category.455/companies_list.html?Advertiser_Region=2-4&page_region=kennebecmooseriver http://www.visit-maine.com/ [R=301,L]
 
Old 12-06-2012, 02:03 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
looks ok except for the [R=301..] part

Code:
RewriteRule ^current_category.455/companies_list.html?Advertiser_Region=2-4&page_region=kennebecmooseriver http://www.visit-maine.com/ [L,R=301]
 
Old 12-06-2012, 02:06 PM   #3
wilkos73
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Do I have this wrong? And any suggestions how I should adjust it. Thank you for the Help
 
Old 12-06-2012, 02:21 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
i provided the code in my response,.. did you try it?
 
Old 12-06-2012, 02:26 PM   #5
wilkos73
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
still bouncing a 404 error
 
Old 12-06-2012, 05:36 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,902

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Quote:
Originally Posted by wilkos73 View Post
still bouncing a 404 error
Where is this 404 coming from? The rewrite looks that it works, so you get the error from http://www.visit-maine.com. You need to check if you have and index page there
Or else check the logs in both servers
 
  


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
301 redirect not working after setting up .htaccess file jprine Linux - Newbie 1 09-23-2011 05:03 PM
301 Re-direct Question Powercall Linux - Newbie 1 04-04-2011 04:23 PM
Error 301 in apache adekoya_sola Linux - Server 2 07-07-2009 10:46 AM
htaccess 301 rewrite BillKat Linux - Server 2 04-07-2009 01:54 PM
cannot get 301 redirect to function geoman Linux - General 4 01-17-2006 09:23 PM

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

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