Need to point to new website


#1

Hi, I need help to point my current address www.pineapple.my to my new website which is currently in https://api.pineapple.my/e-commerce/

In other words, when I type either pineapple.my or www.pineapple.my, I should see the new website in https://api.pineapple.my/e-commerce/

Please help. Thanks


#2

That would be a regular HTTP redirect. You can either configure this directly on your server or, alternatively, create a page rule at Cloudflare.


#3

How can I create a page rule at Cloudflare?


#4

support.cloudflare.com


#5

Is this one where I can point https://api.pineapple.my to www.pineapple.my?

If yes, should I choose 302 temporary redirect or 301 permanent redirect?

And should I Save as Draft or Save & Deploy?


#6

You want to redirect from api to www? I thought the other way round.


#7

yes i want to redirect from api to www

So when users go to www, it will see the https://api.pineapple.my/e-commerce/, but the url should be seeing ‘www.pineapple.my’

See my screenshot below for the new website


#8

Do I have to change the DNS records before changing the page rule?


#9

Do you have access to the api server? If so, you should be able to change your web server config to respond on both www and the root website, then change the DNS for www and your root domain to the api server’s IP address.


#10

I think I have. Here’s my screenshot of the cPanel with only api.pineapple.my as the only domain
Should I add another domain called www.pineapple.my?


closed #11

This topic was automatically closed after 14 days. New replies are no longer allowed.