I manually created a forwarded domain and it didn’t work (yet) because I didn’t included the /category/ base in the final url. While I wait for the new forwarded domain propagates, I realized the plugin will still not work properly because it will end up showing the domain/category/categoryname/post url instead of keeping always the same subdomaintocat/domain/post structure.
But I found the following script at https://www.webmasterworld.com/apache/3438288.htm
# if requested subdomain is not "www"
rewriteCond %{HTTP_HOST} !^(www\.)?example\.com [NC]
# and we have not already rewritten this request to the subdomain's subfolder
rewriteCond %{THE_REQUEST} !/folder/.
# extract requested subdomain to %2
rewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.example\.com
# rewrite the request to the subdomain's subfolder
rewriterule (.*) /folder/%2/$1 [L]
and I’ll give it a try.
Can you help me to integrate it with the wordpress default rules?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This would help so many people that are pushed to upgrade their hosting package to a more expensive one.
Thanks.