http://domain.com/photo/thumbnails.php?album=search&type=full&search=wallpapers
to this:
http://domain.com/photo/wallpapers.htm
- Code: Select all
#### PHOTO SEARCH RESULTS REWRITES
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^(.*&)?album=search(&.*)?$ [NC]
RewriteCond %{QUERY_STRING} ^(.*&)?search=([^&]+)(&.*)?$ [NC]
RewriteRule ^(wraps/)?photo/thumbnails\.php$ /photo/%2.htm? [R=301,L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^photo/(.+)\.htm$ /wraps/photo/thumbnails.php?album=search&search=$1 [QSA,L]
That is good, but how to create pagination as well from this:
http://domain.com/photo/thumbnails.php?album=search&type=full&search=wallpapers&page=3
to this:
http://domain.com/photo/wallpapers.htm/3