The following .htaccess file worked when developing locally, then I moved it to a CentOS linux server, and the rewrite rules I have don't work. A simple rewrite rule WILL work, so I know the .htacess file is being read and evaluated.
Code: Select all
Options -Indexes
RewriteEngine On
RewriteRule ^graphics/([\d]+)/.+/index.html$ /graphics.php?cat_id=$1
RewriteRule ^.+graphics/img/([\d]+_.+)$ /load-image.php?img=$1
ErrorDocument 404 /404.phphttp://www.example.com/graphics/12/computers/index.html
And a sample URL for the second one would look like this
http://www.example.com/computer-graphic ... onitor.gif
When trying the above URLs, I get sent to the 404.php page.