Redirect 301 of old urls to wordpress urls

Since category and page number is dynamic, you can use htaccess and use this sample rewrite rule below: RewriteRule (.*?)/index.(.*?)\.html $1/page/$2/ You can test the regex here – https://htaccess.madewithlove.be/ and I can see that it is working as far as I have tested it. PS: URL Redirections are cached aggresively, you need to clear you … Read more

Dynamic 404 page content while still keeping 404 status code?

You could copy the php/html from your singular.php/page.php to 404.php. Then replace the content loop with echo apply_filters(‘the_content’, $page->post_content); as mrben522 suggested. Using the code from codex as an example, <?php /** * The template for displaying 404 pages (Not Found) * * @package WordPress * @subpackage Twenty_Thirteen * @since Twenty Thirteen 1.0 */ get_header(); … Read more

My site doesn’t redirect from HTTP to HTTPS

Your rewrite conditions, line 4 to 6 in your code, apply when https is active, so you are redirecting from https to https. Consquently you should change the conditions to check, if https is not active, ergo !on and !^443$ and !https. Additionally I’m not sure about the rule RewriteRule .* – [E=WPR_SSL:-https], probably something … Read more

Domain redirect to wp-admin/setup-config.php file

In my case there was a permission problem. I solved with this commands. chown www-data:www-data -R * # Let Apache be owner find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x find . -type f -exec chmod 644 {} \; # Change file permissions rw-r–r–

Redirect wordpress website’s subpage to root [closed]

you have multiple options to achive this. The easiest way is to use a redirection plugin like: https://wordpress.org/plugins/redirection/ if you want to work without a additional plugin, you can use .htaccess redirection like mentioned earlier: RewriteEngine On RewriteRule ^/?blog/(.*)$ /$1 [R=301,L]

WordPress CSS/Theme gone after SSL got activated

Sounds like you switched over to HTTPS and your site assets aren’t loading. Here are a few things you can try. Update your site address by going to Admin > Settings > General and making sure you have https instead of just http in the URL fields Add define(‘FORCE_SSL_ADMIN’, true); to wp-config.php Change any static … Read more