WordPress Multisite redirect loop

Applying the htaccess for version 3.5+ seems to have worked RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]

admin_url() do not retrieve the correct url in an subdirectory install

I solved my problem by trying this (and it works!): function get_some_url() { $full_url = add_query_arg( ‘action’, ‘action-name’, admin_url( ‘users.php’ ) ); //$relative_url = str_replace( get_site_url(), ”, $full_url ); //return $relative_url; return $full_url; } This was tested in a localhost/subdirectory install and in a live install (not subdirectory). Now the URL is retrieved correctly.

Installing wordpress on subdirectory 2 levels down

I managed to resolve this myself. Apologies for wasting anyones time. The fix was simple. I just had to add the following piece of code to my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /jack/blog/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /jack/blog/index.php [L] </IfModule> Save my permalinks and the problem … Read more

Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)

I’m assuming you’re referring to: get_template_directory() get_template_directory_uri() get_template_directory() is an absolute path – so if you’re including a PHP file that is in your template directory this would be a good function to use. If you’re using a child theme and need to reference something in the parent theme you could also use this function. … Read more

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