Solved

htaccess statement not right.

Posted on 2011-09-16
3
168 Views
Last Modified: 2012-05-12
hi all,

I've recently moved to a new server. The following statement used to work on the old server but the new server causes a error 500 and pages on the site:

RewriteCond %{QUERY_STRING}  ^$
RewriteRule ^Related_Guides/A_Guide_to_Buying_a(?:[\ +]|%20)Business_31\.php$ /Related_Guides/A_Guide_to_Buying_a_Business_31\.php? [R=301,NE,NC,L]

Open in new window


Any rewrite would be appreciated.
0
Comment
Question by:Mulith
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 36551581
try:
RewriteCond %{QUERY_STRING}  ^$
RewriteRule ^Related_Guides/A_Guide_to_Buying_a(\s|%20)+Business_31\.php$ /Related_Guides/A_Guide_to_Buying_a_Business_31.php [R=301,NE,NC,L]

Open in new window

0
 
LVL 48

Expert Comment

by:hernst42
ID: 36552127
Maybe that new server requires does not allow rewrite rules. What do you get in the error_log of the new server?
0
 
LVL 4

Expert Comment

by:h4hardy
ID: 36553160
Hi Mulith,

i think chmod i.e support the rewrite things is not enable on server. so better way to check that just upload the one file that contain the phpinfo() , and execute that on browser it will clearly shows that a rewrite is supported or not?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wordpress Cron - Send XML Data to external server FTP 3 21
Undefined variable problem 5 21
Link failure 16 31
Is sending authentication through SOAP secure? 3 14
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question