Originally Posted by
shags38
Hi Melanie, many thanks for your response - please refer to my reply to 'swguy' regarding the inherent issue with cPanel. Where only an individual page needs to be redirected I think a php redirect in the appropriate header will be the better approach. I once had a quantity of redirects from one site to another in place in cPanel and then added a redirect to a page with /index.php?main_page=contact_us [example] and it automatically obviated all the other redirects because it redirect the whole site which wasn't what I wanted.
thanks again
cheers, Mike
Hi Mike,
The redirect I provided should correctly land. It's not cPanel, it's the syntax that matters. The cPanel tool is really not a great way to edit your htaccess, it can make issues in the syntax.
Code:
RewriteEngine On
RewriteCond %{QUERY_STRING} contact_us
RewriteRule (.*) https://new_domain.com/index.php?main_page=contact_us [R=301,L,NE]
~Melanie
Bookmarks