Solved

htaccess statement not right.

Posted on 2011-09-16
3
169 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 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

730 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