http:///www.domain.com/foo2.3/v/album_name/subalbum_name/pages.php?pageid=17 [This is the example URL and the subalbum_name will change]
- Code: Select all
RewriteCond %{QUERY_STRING} ^pageid=([0-9]+) [NC]
RewriteCond %{REQUEST_URI} ^foo2.3/v/album_name/(.+)/pages.php [NC]
RewriteRule ^.+$ /foo2.3/v/album_name/$1/? [R=301,L]
OR
RewriteCond %{QUERY_STRING} ^pageid=([0-9]+) [NC]
RewriteRule ^foo2.3/v/bluebirdcove/(.+)/pages.php$ /gallery2.3/v/bluebirdcove/$1 [R=301,L]
Any help will be great.
Randal