: Mask URL to make the host URL invisible and use the main domain as WordPress permalinks? I use one hosting for all of my domains (approx. 15 of them) and I have a WordPress installed for
I use one hosting for all of my domains (approx. 15 of them) and I have a WordPress installed for one of them.
Let's say, my main hosting domain is: hosting.example.net
And I have installed WordPress to the subfolder: hosting.example.net/wp
Then, I've forwarded my domain example.com to hosting.example.net/wp WITH masking. So, I have example.com for all pages.
Now, here's the problematic part: Masking is not a SEO-friendly practice, because I cannot take advantage of SEO-optimized permalinks (e.g. example.com/books). But at the same time I do not want my hosting domain hosting.example.net to be visible (e.g. hosting.example.net/wp/books).
Is there a workaround for this to get permalinks like example.com/books?
More posts by @Sue5673885
1 Comments
Sorted by latest first Latest Oldest Best
There is no 'workaround' - you need to proxypass from a server registered to example.com. This means serving URLs as example.com/books but have your server source the content from hosting.example.net.
This involves configuring your server (Apache/Nginx/IIS). An example for Apache would be:
<VirtualHost *:80>
DocumentRoot "/www/whatever"
ServerName example.com
ProxyPass hosting.example.net/ </VirtualHost>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.