Setting up WP website URL
-
Hello;
I have an hosting which I use to host 10 domains. I create folders and host domains as add-on domains. Now, I have installed WP for one of my websites to a sub-folder, let’s say:
And I’ve set folder /abc as the root for https://www.abc.com
Therefore, I want https://www.abc.com to be the homepage of the website and https://www.abc.com/page to be the permalink.
However, when I installed WP, on the settings page I see:
WordPress Address (URL): https://www.example.com/abc
Site Address (URL): https://www.example.com/abcI’ve changed Site Address to https://www.abc.com but then it the website and header came up fine, but all contents gave me 404 error. Tried changing WordPress Adresss and it came up with even bigger problems.
Then, I tried to change it directly from the database, under WP_Options table. I’ve tried changing both addresses but nothing worked again.
I’ve also tried adding
define(‘WP_HOME’,’https://www.abc.com’);
define(‘WP_SITEURL’,’https://www.abc.com’);to the wp-config.php but it didn’t work either.
I get stuck here. For the moment, I’ve reidrected my domain to the WP homepage but it’s not good for SEO reasons. I definetely want https://www.abc.com/page structure.
Am I missing something?
Please let me know! Thanks in advance!
- The topic ‘Setting up WP website URL’ is closed to new replies.