Forum Moderators: phranque
www.example.com/galleries/person/concert/1/
to:
www.example.com/galleries/gallery.php?gallery=person&type=concert&page=1
I can get this to work if I change galleries to something else that doesn't already exist, like:
RewriteRule ^gallery1/([^/]+)/([^/]+)/([0-9]+)/$ /galleries/gallery\.php?gallery=$1&type=$2&page=$3 [L]
Is there some type of conflict because the second part of the rule starts off with /galleries/?
Jennifer
Does it work if you simplify it right down like:
RewriteRule ^galleries/person/concert/([0-9]+)/$ galleries/gallery.php?gallery=person&type=concert&page=$1 [L]
[edited by: Longhaired_Genius at 4:19 pm (utc) on July 27, 2005]
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?domain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://(www\.)?ipaddress(/)?.*$ [NC]
RewriteRule .*\.(gif¦jpg¦jpeg)$ - [F,NC] When this file exists, the rewrite in my webroot does not work. When I delete it, the rewrite works. Any ideas why?
Jennifer
RewriteCond %{REQUEST_URI}!banners/.*$ [NC] There should be a space between } and!
Options -Multiviews is the default so it doesn't matter if you leave it there.
RewriteCond %{QUERY_STRING} ^$
Jim