Change Admin URL
I’ve always just included a redirect in htaccess, but I’m sure there’s a fancier way. redirect 301 /wp-admin /wordpress/wp-admin
I’ve always just included a redirect in htaccess, but I’m sure there’s a fancier way. redirect 301 /wp-admin /wordpress/wp-admin
As I shared above that I got .html in page by a Plugin. The rest of the problem is to add /p/ before page name that I got also as TheDeadMedic mentioned above. I just created a page with URL www.example.com/WP/p.html and then created another desired page with URL www.example.com/WP/sample-page.html but add the second page … Read more
The rewrite condition !-f means “if file does not exist”. Since the files exist, the rule is never reached. Just changing the order should fix the problem. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^wp-content/uploads/(.*\.(jpe?g|gif|png))$ watermark.php?p=br&q=90&src=wp-content/uploads/$1 [L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Disappearing items in menu
There’s a thread about this on the WordPress forums: http://wordpress.org/support/topic/how-to-change-the-admin-url-or-wp-admin-to-secure-login?replies=13 The original article has three steps: (1) Add constant to wp-config.php define(‘WP_ADMIN_DIR’, ‘secret-folder’); define( ‘ADMIN_COOKIE_PATH’, SITECOOKIEPATH . WP_ADMIN_DIR); (2) Add this filter to functions.php add_filter(‘site_url’, ‘wpadmin_filter’, 10, 3); function wpadmin_filter( $url, $path, $orig_scheme ) { $old = array( “/(wp-admin)/”); $admin_dir = WP_ADMIN_DIR; $new = array($admin_dir); … Read more
Parsing of the requested URL happens in the file wp-includes/class-wp.php. The magic happens starting at line 148 in the parse_request function. For path info style permalinks, $_SERVER[‘PATH_INFO’] is used, for pretty permalinks, $_SERVER[‘REQUEST_URI’] is used.
After asking here, I keep trying myself too so I am able to do it and working on my side. I added below codes in my .htaccess file and after that I am able to redirect all upper URLs without any 404 error. Redirect 301 /search/label http://www.example.com/category Redirect 301 /search http://www.example.com Redirect 301 /feed http://www.example.com … Read more
block seacrh engines for all pages EXCEPT homepage
Yes, it is 🙂 There are a few things you need to do, maybe I can point you in the right direction. If you haven’t already set up the virtual host on your server here are some instructions If you are trying to move an existing site you will need to use a database search … Read more
Missing visual editor after placing a redirect rule into the .htaccess file