Forum Moderators: phranque
http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php Redirect 301 /galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php?album=fauna/insects/moths/adults/Luna_Moth_eye.jpg.html RewriteEngine on
RewriteRule ^/galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html$ http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php? [L,R=301] http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php? http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php foo.php same as foo.php? ? [edited by: jdMorgan at 4:46 pm (utc) on Oct 15, 2010]
Redirect 301 /galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php?album=fauna/insects/moths/adults/Luna_Moth_eye.jpg.html Redirect 301 /galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php? http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php? http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php . http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php /galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php ? RewriteEngine on
RewriteRule ^/galleries/fauna/insects/moths/adults/Luna_Moth_Eyes.jpg.html$ http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-Eyes.jpg.php [L,R=301] RewriteEngine on
RewriteRule ^/galleries/fauna/insects/moths/adults/Luna_Moth_Eyes.jpg.html$ http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-Eyes.jpg.php [L,R=301]
I've put this at end of htaccess and the link doesn't change at all.
RewriteEngine on
#
RewriteRule ^galleries/fauna/insects/moths/adults/Luna_Moth_Eyes\.jpg\.html$ http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-Eyes.jpg.php? [R=301,L]
http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna_Moth_Eyes.jpg.html The page you are requesting cannot be found.
Album: fauna/insects/moths/adults
Image: Luna_Moth_Eyes.jpg.html AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4 # htaccess file version 1.2.8.0;
# When Zenphoto requires changes to the rewrite rules:
#First make a copy of this file as 'oldhtaccess' in the zp-core folder so setup can test for unmodified files
#Update the above and the define in setup.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /galleries
RewriteRule^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule index\.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9_\-]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9_\-]+)/([0-9]+)/?$ index.php?p=$1&page=$2 [L,QSA]
RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.*)/page/([A-Za-z0-9_\-]+)/?$ index.php?album=$1&p=$2 [L,QSA]
#### Rewrite rule addition for search
RewriteRule ^page/search/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/search/fields([0-9]+)/(.*)/?$ index.php?p=search&searchfields=$1&words=$2 [L,QSA]
RewriteRule ^page/search/archive/(.*)/([0-9]+)/?$ index.php?p=search&date=$1&page=$2 [L,QSA]
RewriteRule ^page/search/archive/(.*)/?$ index.php?p=search&date=$1 [L,QSA]
RewriteRule ^page/search/tags/(.*)/([0-9]+)/?$ index.php?p=search&searchfields=tags&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/tags/(.*)/?$ index.php?p=search&searchfields=tags&words=$1 [L,QSA]
RewriteRule ^page/search/(.*)/([0-9]+)/?$ index.php?p=search&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/(.*)/?$ index.php?p=search&words=$1 [L,QSA]
#### Rewrite additions for zenpage
RewriteRule ^pages/?$ index.php?p=pages [L,QSA]
RewriteRule ^pages/(.*)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^news/?$ index.php?p=news [L,QSA]
RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^news/category/(.*)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^news/category/(.*)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^news/archive/(.*)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^news/archive/(.*)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^news/(.*)/?$ index.php?p=news&title=$1 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
RewriteRule ^(.*)/album/(thumb|[0-9]{1,4})/([^/\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2&album=true [L,QSA]
####
# Catch-all - everything else gets handled in PHP for compatibility.
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
</IfModule>
RewriteRule ^fauna/insects/moths/adults/Luna_Moth_Eyes\.jpg\.html$ http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-Eyes.jpg.php? [R=301,L]
RewriteEngine On
RewriteBase /galleries
RewriteRule ^fauna/insects/moths/adults/Luna_Moth_Eyes\.jpg\.html$ http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-Eyes.jpg.php? [R=301,L]
RewriteRule^admin/?$ zp-core/admin.php [R,L] The rule currently with [R,L] should have [R=301,L]
RewriteRule ^page/search/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA] RewriteRule ^page/search/fields([0-9]+)/([^/]+)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA] RewriteRule ^page/search/fields([0-9]+)/(([^/]+/)*[^/]+)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$4 [L,QSA]