Maljonic
Can't get enough of FH
- Joined
- Dec 22, 2003
- Messages
- 1,297
Does anyone know if it's possible to rewrite the domain name of all the URLs on a website?
I mean if you move your site to a different address but all the pages keep the same name so you want each page to redirect to it's counterpart at the new address using .htaccess at the old address.
Usually I've just done a seperate redirect for each page, but it occured to me that there MUST be a way to do it with one or two lines instead of 30, 40 or 300 etc when the only thing that's changing is the domain name.
I mean if you move your site to a different address but all the pages keep the same name so you want each page to redirect to it's counterpart at the new address using .htaccess at the old address.
Usually I've just done a seperate redirect for each page, but it occured to me that there MUST be a way to do it with one or two lines instead of 30, 40 or 300 etc when the only thing that's changing is the domain name.