Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”

it opens the site in the domain Have you tested inner pages, not just the homepage? A seeming inconsistency in your config is that you have defined DocumentRoot /var/www/html/10_sites/ in your vHost(s) yet you have set RewriteBase /10_sites/ in your .htaccess file. Unless your site files are located in /var/www/html/10_sites/10_sites/ (yes, the last directory repeated … Read more

Wrong canonical link on wp-admin pages

wp-admin-canonical is broken, as it assumes how WordPress is installed. there was a plugin to fix it, but the plugin was removed from the plugin repository apparently. It is still on github and pluginmirror though: https://github.com/wp-plugins/remove-wp-canonical-url-admin-hack http://www.pluginmirror.com/plugins/remove-wp-canonical-url-admin-hack/

WordPress .htaccess subdirectory problem

Even though static files and directories do work with a mod_rewrite’d wordpress installation in the servers root you might need to exclude your CodeIgniter subdirectory from that mod_rewrite lineup. You can do so by placing an additional .htaccess file into the CodeIgniter directory and disable mod_rewrite in there: <IfModule mod_rewrite.c> RewriteEngine off </IfModule> Related: apache … Read more

Redirecting WordPress /.htaccess / HSTS / SSL

So, the canonical URL is https://example.com/…. (You appear to be describing a pointless intermediary redirect? You should only redirect to the final canonical URL, no need for anything in between.) This is just a standard HTTP to HTTPS redirect. You can do this using mod_rewrite at the top of your .htaccess file. For example: RewriteEngine … Read more

Passing variables through permalink structure

Solved it! // Register the variables that will be used as parameters on the url function add_my_var($public_query_vars) { $public_query_vars[] = ‘extra_slug’; return $public_query_vars; } add_filter(‘query_vars’, ‘add_my_var’); // Build the rewrite rules, for the extra parameter function do_rewrite() { add_rewrite_rule(‘(accommodation)/[/]?([^/]*)$’, ‘index.php?pagename=accommodation&extra_slug=$matches[2]’,’top’); } add_action(‘init’, ‘do_rewrite’); // The parameter is now accessible get_query_var(‘extra_slug’)

Securing wp-admin folder – Purpose? Importance?

But if you protect wp-login.php, how would a hacker even get into the dashboard anyways? An attacker could try to hijack or forge a valid authentication cookie. Recently there was a possibly vulnerability which made it »easier« to forge such a cookie: CVE-2014-0166 It was fixed with Version 3.7.3/3.8.3 How does “Code A” compare to … Read more

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