Superior Web Solutions - Web Development 905 532 9642Free Project Estimator
HOME CLIENTS SERVICES BLOG ABOUT US CONTACT US
Categories:
 Internet Marketing
 iPhone iPad Apps Development
 IT Humour
 IT Industry News
 Search Engines
 User Guides
 Web Development
Browse by tags
Search Blog:
RSS
Subscribe to our newsletter
Name*:
E-Mail*:
Recent Posts
On April 21st 2013 SWS will be celebrating its 11th birthday!
mysql_query deprecated as of PHP 5.5.0
Web Development on Subdomains on Godaddy Servers ( $_SERVER[`DOCUMENT_ROOT`] Issue)
Usage of Canadian Coat of Arms in Web Design
MySQL COUNT(*) VS PHP mysql_num_rows
Convert String to Lowercase or Uppercase Tool (+ PHP code)
October 24, 2011 - GoDaddy Mod_Rewrite Problem

 

GoDaddy did an upgrade on the hosting server to Apache 2.2. Result - mod_rewrite stopped working.

Here is the solution to that...

 

Problem was in that line:

rewriterule ^products/([0-9]+)/([A-Za-z0-9_\-\|]+) /products.php?%{QUERY_STRING}[L]

As you can see rewrite path begins with the same name as the file it redirects to, simply changing the file name to product.php fixed the problem. Here is the code that works:

rewriterule ^products/([0-9]+)/([A-Za-z0-9_\-\|]+) /product.php?%{QUERY_STRING}[L]

Other servers are fine with it, but GoDaddy does not like it.

Here is the article about What is Mod Rewrite and How to Use It

Associated tags:  Mod Rewite, Apache, Godaddy, Mod_Rewrite
Add Comment:
Name*:
E-Mail: Website:
Your message*:
»
© 2000 - 2013 Superior Web Solutions