Pagination redirect set in .htaccess file is not working

You need to remove the domain name from RewriteRule check. So instead of: RewriteRule ^hogehoge.com/page/(.*)$ http://hogehoge.com/item/page/$1 [R=301,L] You need to set: RewriteRule ^page/(.*)$ http://hogehoge.com/item/page/$1 [R=301,L] Also, once you have done the redirect: Make sure WordPress is responding properly to the http://example.com/item/page/1 form of URL (this is also possible by doing another internal rewrite back to … Read more

How to 301 redirect to subdirectory but keep access to wp-admin of main domain

I’m assuming that you are willing to do this for maintenance mode, 301 is for permanent redirect. You can add this snippet in functions.php to enable redirection of the entire wordpress site to another site. add_action( ‘template_redirect’, ‘wp_maintance_mode’ ); function wp_maintance_mode() { wp_redirect( “http://new_url” ); // or if the folder is outside wordpress and lies … Read more

Redirect from plugin created page

What you can do is save the ID of page you programatically created in options table. add_option( ‘my_plugin_dynamic_page_id’, YOUR_PAGE_ID_HERE); Now you can get the page you created easily anytime you want. Following way. $pageID = get_option( ‘my_plugin_dynamic_page_id’, true); Then you can get the permalink to the page once you get the page ID. And redirect … Read more

Moving site from HTTP to HTTPS

This seems like a webhosting error. Specifically, the webserver settings error. I vote not to switch to HTTPS 🙂 This may be a certificate setting error (not a wrong certificate itself) or routing for HTTPS requests.

Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)

The ^ in your rewriterule means the URL must begin with the postname, as in your new structure – so what you’re saying in that second line is, “redirect http://www.example.com/postname to http://www.example.com/postname“. So it’s the ^ that’s throwing things off. If you were previously using URLs like http://www.example.com/categoryname/postname/ then I would suggest instead: RewriteEngine On … Read more