How to redirect specific URL to Subdomain

To redirect example.com/pagecategory/page-single to pagecategory.example.com/page-single, where pagecategory is entirely variable then you can do something like the following at the top of your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule ^([a-z]+)/([\w-]+) https://$1.%{HTTP_HOST}/$2 [R,L] I’ve limited the “subdomain” (ie. pagecategory) to just the lowercase characters a-z – this is saved in the $1 backreference. … Read more

Add language prefix to permalinks

I”m not sure if this is the “best” way to approach it but this is what I would try first. I would create a taxonomy (like categories) called languages. Maybe even use categories (if they are not in use for something else). You can structure permalinks to go example.com/<cat-name>/<page-stub> and, thus, have the language as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)