$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>urls - Post not redirecting to non www after changing from www|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

urls - Post not redirecting to non www after changing from www

matteradmin9PV0评论

Recently I changed my domain from www to non-www, still Post accessing using www. But showing blank page, what to do ? So that all post redirect to non-www. I did it through cpanel, after that everything is fine except 12-15 post not redirecting, still accessing through www and showing blank page, it's only 12-15 post among 90 post, why so, and how to solve this, thanks. Also used redirect plugin, rank math SEO plugin redirect module.

Recently I changed my domain from www to non-www, still Post accessing using www. But showing blank page, what to do ? So that all post redirect to non-www. I did it through cpanel, after that everything is fine except 12-15 post not redirecting, still accessing through www and showing blank page, it's only 12-15 post among 90 post, why so, and how to solve this, thanks. Also used redirect plugin, rank math SEO plugin redirect module.

Share Improve this question edited Jan 14, 2019 at 3:26 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Jan 14, 2019 at 0:32 priyabrata senpriyabrata sen 1 1
  • Please include the contents of your .htaccess file. – MrWhite Commented Jan 14, 2019 at 9:56
Add a comment  | 

1 Answer 1

Reset to default 0

I did it through cpanel

That's certainly part of the problem. cPanel will add the redirect at the end of the .htaccess file (after the WordPress front-controller) - so they are not getting processed. You need to manually edit the .htaccess file to move these directives to the top.

However, that doesn't entirely answer your question as this wouldn't affect only "some" WordPress pages.

Accessing your site with the www subdomain should still show the relevant page - not a blank page?!

Post a comment

comment list (0)

  1. No comments so far