Hi
I'd like to use this image host which I moved from apache.
http://codefuture.co.uk/projects/imagehost/
It uses a strange system and it WONT work without the rewrites.
Here's what the .htaccess looks like:
I tried to add / before ^ but it didn't help.
If you have some time could you tell me where should I look for help?
I'd like to use this image host which I moved from apache.
http://codefuture.co.uk/projects/imagehost/
It uses a strange system and it WONT work without the rewrites.
Here's what the .htaccess looks like:
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
ErrorDocument 400 /index.php?err=400
ErrorDocument 401 /index.php?err=401
ErrorDocument 403 /index.php?err=403
ErrorDocument 404 /index.php?err=404
ErrorDocument 500 /index.php?err=500
#image view
RewriteRule ^pm-(.*)\.(jpg|jpeg|png|gif|html)$ thumbnail.php?pm=$1 [L]
RewriteRule ^pt-(.*)\.(jpg|jpeg|png|gif|html)$ thumbnail.php?pt=$1 [L]
RewriteRule ^dt-(.*)\.(jpg|jpeg|png|gif)$ image.php?dt=$1 [L]
RewriteRule ^dm-(.*)\.(jpg|jpeg|png|gif)$ image.php?dm=$1 [L]
RewriteRule ^di-(.*)\.(jpg|jpeg|png|gif|bmp)$ image.php?di=$1 [L]
RewriteRule ^dl-(.*)\.(jpg|jpeg|png|gif|bmp)$ image.php?dl=$1 [L]
RewriteRule ^pm/(.*)/(.*)\.(jpg|jpeg|png|gif|html)$ thumbnail.php?pm=$1 [L]
RewriteRule ^pt/(.*)/(.*)\.(jpg|jpeg|png|gif|html)$ thumbnail.php?pt=$1 [L]
RewriteRule ^dt/(.*)/(.*)\.(jpg|jpeg|png|gif)$ image.php?dt=$1 [L]
RewriteRule ^dm/(.*)/(.*)\.(jpg|jpeg|png|gif)$ image.php?dm=$1 [L]
RewriteRule ^di/(.*)/(.*)\.(jpg|jpeg|png|gif|bmp)$ image.php?di=$1 [L]
RewriteRule ^dl/(.*)/(.*)\.(jpg|jpeg|png|gif|bmp)$ image.php?dl=$1 [L]
#Not Found
RewriteRule ^(pm|pt)/(.*)/(.*)$ thumbnail.php?pm=notfound [L]
RewriteRule ^(dt|dm|di|dl)/(.*)/(.*)$ index.php?di=notfound [L]
#Gallery
RewriteRule ^gallery/$ gallery.php [L]
RewriteRule ^gallery/([0-9]+)/$ gallery.php?p=$1 [L]
RewriteRule ^gallery/(.*)/([0-9]+)/$ gallery.php?p=$2&o=$1 [L]
RewriteRule ^gallery/([A-Za-z])/page([0-9]+)\.html$ gallery.php?p=$2&o=$1 [L]
#sitemap
RewriteRule ^sitemap.xml$ sitemap.php [L]
</IfModule>
If you have some time could you tell me where should I look for help?