• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

htaccess statement not right.

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
Mulith
Asked:
Mulith
1 Solution
 
hieloCommented:
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
 
hernst42Commented:
Maybe that new server requires does not allow rewrite rules. What do you get in the error_log of the new server?
0
 
h4hardyCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now