I've found a few threads here regarding mod_rewrites, and I'm confused. One post quoted Andrew as saying they may not work here; others beg to differ. I tried adding this to an .htaccess file and I'm getting a 500 error:
Options -Indexes
RewriteEngine on
RewriteRule ^(browse|about)$ index.php?x=$1&pagenum=1
RewriteRule ^browse/([0-9]+)$ index.php?x=browse&category=&pagenum=$1
RewriteRule ^browse/category/([0-9]+)/([0-9]+)$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/category/([0-9]+)$ index.php?x=browse&category=$1&pagenum=1
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^photo/([0-9]+)$ index.php?showimage=$1
RewriteRule ^photo/([0-9]+)/rating/([1-5])$ index.php?showimage=$1&rating=$2
RewriteRule ^photo/file/(.+)$ /images/$1
RewriteRule ^thumbnails/latest$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1
RewriteRule ^browse/archive/(.*)/([0-9]+)$ index.php?x=browse&archivedate=$1&pagenum=$2
RewriteRule ^browse/archive/(.*)$ index.php?x=browse&archivedate=$1&pagenum=1
Anyone have any thoughts on this? By the way, this if for a photoblog running Pixelpost (http://www.picturedujour.com).
Here's the error log:
[Sat Oct 15 17:45:13 2005] [error] [client 68.20.19.203] File does not exist: /home/pictured/public_html/404.shtml
[Sat Oct 15 17:45:13 2005] [error] [client 68.20.19.203] File does not exist: /home/pictured/public_html/favicon.ico
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:26:48 2005] [error] [client 71.112.94.185] File does not exist: /home/pictured/public_html/404.shtml
[Sat Oct 15 17:26:48 2005] [error] [client 71.112.94.185] File does not exist: /home/pictured/public_html/favicon.ico
Options -Indexes
RewriteEngine on
RewriteRule ^(browse|about)$ index.php?x=$1&pagenum=1
RewriteRule ^browse/([0-9]+)$ index.php?x=browse&category=&pagenum=$1
RewriteRule ^browse/category/([0-9]+)/([0-9]+)$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/category/([0-9]+)$ index.php?x=browse&category=$1&pagenum=1
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^photo/([0-9]+)$ index.php?showimage=$1
RewriteRule ^photo/([0-9]+)/rating/([1-5])$ index.php?showimage=$1&rating=$2
RewriteRule ^photo/file/(.+)$ /images/$1
RewriteRule ^thumbnails/latest$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1
RewriteRule ^browse/archive/(.*)/([0-9]+)$ index.php?x=browse&archivedate=$1&pagenum=$2
RewriteRule ^browse/archive/(.*)$ index.php?x=browse&archivedate=$1&pagenum=1
Anyone have any thoughts on this? By the way, this if for a photoblog running Pixelpost (http://www.picturedujour.com).
Here's the error log:
[Sat Oct 15 17:45:13 2005] [error] [client 68.20.19.203] File does not exist: /home/pictured/public_html/404.shtml
[Sat Oct 15 17:45:13 2005] [error] [client 68.20.19.203] File does not exist: /home/pictured/public_html/favicon.ico
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:44:57 2005] [alert] [client 68.20.19.203] /home/pictured/public_html/.htaccess: Illegal option RewriteEngine
[Sat Oct 15 17:26:48 2005] [error] [client 71.112.94.185] File does not exist: /home/pictured/public_html/404.shtml
[Sat Oct 15 17:26:48 2005] [error] [client 71.112.94.185] File does not exist: /home/pictured/public_html/favicon.ico


Comment