?
Solved

htaccess statement not right.

Posted on 2011-09-16
3
Medium Priority
?
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 2000 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

762 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