Facing Post Redirection Issue


I have one Wordpress website on Digital Ocean. I have installed Wordpress through Serverpilot. I have redirected to & Its Working Fine.

But a Post is not redirecting to I have tried to do it by adding code in htaccess file, But Still I am facing Same Issue.

Code Added in Htaccess was - RewriteEngine On RewriteCond %{HTTP_HOST} ^ [NC] RewriteRule ^(.*)$$1 [L,R=301]


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi, please make sure you’ve added these custom rewrite rules to the top of your .htaccess file. If you added them to the bottom of your .htaccess file, then the WordPress rules will take precedence and requests will never reach the custom rules you’ve added.