Most times you can’t. And most times you don’t want to.
There’s no advantage of using relative paths over absolute paths – infact you’re more likely to have problems using relative paths.
Is there a reason that you think that relative paths will be better?
Thank you for your reply. I want to set up multiple domains for our website. Currently there are tow domains: pen1us.com and peni.us I have installed a Multiple domain plugin for that and it seems to work fine, but for example if I visit pen1us.com and when I click the logo that redirects a user to the homepage, the shop now button or if I switch to another language it redirects me back to peni.us. I was told that I should try using relative paths instead of absolute. For example instead of https://peni.us/about-us-2/ use only /about-us-2/
How is it possible to set it up?
That’s a completely different question.
Are you going to use the different domains for differnt sites, different languages, or jsut parked to show the same content?
I want to use two domains with one hosting. There should be two different domains that render the same content. And if for example I make any change on my main website (peni.us) it should affect pen1us.com as well.
Yes, I actually use this plugin now, but still I couldn’t figure out how to create a relative link in WordPress. For example relative links for the logo, the shop now page and for the language switcher.
-
This reply was modified 5 years, 10 months ago by
paul8998.
Hello. Thank you. And how can I do it using SFTP?