How to stop rewrite from redirecting

Following is my URL rewrite code for a single page of my wordpress site.<IfModule mod_rewrite.c>RewriteEngine On

Following is my URL rewrite code for a single page of my wordpress site.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^mainparent\/subparent\/pseudopage\/$ /?page_id=3420 [PT]
</IfModule>

Have added above in htacess.

Issue is that, the browser URL is changed to actual page. Shouldnt it remain pseudopage in URL bar, since ReWrite is used?

How do maintain the pseudopage in URL bar, while displaying the content of /?page_id=3420 or /mainparent/subparent/actualpage/ (using htaccess)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745036712a4607564.html

相关推荐

  • How to stop rewrite from redirecting

    Following is my URL rewrite code for a single page of my wordpress site.<IfModule mod_rewrite.c>RewriteEngine On

    10小时前
    80

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信