Hi,
I recently changed my webhoster and had to reorganize part of my website. I don't want to have a subdomain anymore, but this one is still well referenced on search engines, so I have to rewrite the URLs to my new directory structure.
After reading some of the messages here, I didn't find the solution for my specific problem...
This part of the site was hosted in a folder on a subdomain : http://user.domain.com/folder1/
Additionnaly, I had a redirection : when http://user.domain.com was typed, it pointed to http://user.domain.com/folder1/index.php
Now, the site is hosted in http://www.domain.com/user/
I already configured my DNS for user.domain.com , and had no other choice than to make it point to www.domain.com/user/
This is why I am searching for a rule which :
- redirects every request on http://user.domain.com/folder1/ to http://www.domain.com/user/
(for example, http://user.domain.com/folder1/folder2/ ... /file1.jpg shoud redirect to http://www.domain.com/user/folder2/folder3/file1.jpg)
- redirect the requests on http://user.domain.com(/index.php) to http://www.domain.com/user/index.php
Does anyone have an idea of how to do it? Thanks in advance!