I have a website here:
Now, i need to redirect all requests to that domain/directory to otherdomain, in this case designcenter.com.ve while keeping folder hierarchy as it is, for example:
http://olddomain/wordpress/post - to - http://newdomain/post or maybe http://newdomain/wordpress/post
Already tried some answers here, but no still luck, no redirecting and plus had to delete htaccess and restore permalinks on wordpress.
Somebody could shed some light on this?
Thanks in advance!
Give this a shot.
I always prefer the popular Redirection plugin. Since you don't need to touch the .htaccess file. And you can manage everything from Wordpress Admin itself
Update:2: You can find all the basic redirect rules here.
Use this in regex... (Based on your usecase)
UPDATE: I noticed... you haven't updated the permalinks in your 2nd site... Do that first and then also see the site URL is properly mentioned in your wordpress admin settings page.
You just need this rule but make sure this rule is your first rule in your
DocumentRoot/.htaccess
ofolddomain.com
:In case your .htaccess is in
/wordpress/.htaccess
then use:as your first rule.