Redirect old domain with query paramaters

The old domain is: www.example.com/newspage.asp?m=4&y=2015 and I need that URL, as well as that URL with different query paramaters to go to: example.com/news. So, you are also changing the host with this redirect (www subdomain to bare domain)? Otherwise, it just looks like you can ignore the query string. This is relatively trivial to do … Read more

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

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