LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   301 not working (https://www.linuxquestions.org/questions/linux-newbie-8/301-not-working-4175440316/)

wilkos73 12-06-2012 12:20 PM

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]

szboardstretcher 12-06-2012 01:03 PM

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]

wilkos73 12-06-2012 01:06 PM

Do I have this wrong? And any suggestions how I should adjust it. Thank you for the Help

szboardstretcher 12-06-2012 01:21 PM

i provided the code in my response,.. did you try it?

wilkos73 12-06-2012 01:26 PM

still bouncing a 404 error

bathory 12-06-2012 04:36 PM

Quote:

Originally Posted by wilkos73 (Post 4844005)
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


All times are GMT -5. The time now is 10:14 AM.