.htaccess redirects for posts in new directory and new domain

You could use mod_rewrite with some regex like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/old/(.*)/?$ http://newdomain.com/new/$1 [R=302,L,NC] </IfModule> This would go in the .htaccess file in the olddomain.com document root. I’d suggest leaving it as a 302 until you are sure it’s having the desired effect, as most browsers will cache 301’s and then not … Read more

Subfolder renaming

if you want to move your wordpress from blog1 to blog2 you will need to do 2 steps Step 1 – change site url from /wp-admin/options-general.php WordPress Address (URL) and Site Address (URL) Step 2 – rename blog1 folder to blog2 from cpanel and file manager when you save changes you will not be able … Read more

How to direct users to a subcatalog

You can achieve this using .htaccess redirection rule. Please try below redirection rule: # Permanent URL redirect Redirect 301 /index.html http://stolsvidda-loypelag.no/wordpress/index.html NOTE: Here, I assume that your wordpress folder contains index.html

WordPress URL not working?

This is not how rewrite_rules works in WordPress. You miss two things. Match. It has $1, but in reality (take a look to example), you need to work with $matches. Your Query Var. You using q, but its not wp native or declared in example code. You can use one of the public ones or … Read more

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