Am trying to permanently redirect alot of pages and was wondering if there is a simple fix with .htaccess Old page: http://www.domain.com/hd11256816.htm New page: http://subdomain.domain.com/hotel/10014030-11256816O.html Old page: http://www.domain.com/hd21256816.htm New page: http://subdomain.domain.com/hotel/10014030-21256816O.html Old page: http://www.domain.com/hd31256816.htm New page: http://subdomain.domain.com/hotel/10014030-31256816O.html So the only thing that changes with every page is the "11256816" part and should translate into the last bit of the new page as well. Hope I'm making sense and that it can be done!
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^hd(.*)\.htm$ http://sub-domain.domain.com/hotel/10014030-$1O.html [R=301,L]