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
评论列表(0条)