Rewrite a Wordpress URL on .htaccess
Posted
by
Rifki
on Server Fault
See other posts from Server Fault
or by Rifki
Published on 2011-09-14T15:00:28Z
Indexed on
2011/11/20
1:56 UTC
Read the original article
Hit count: 496
I'm using this permalink structure on my wordpress site : mysitedotcom/2011/09/mypost
and i'm using rewrite rule to visit another site on .htaccess
,
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ([0-9]+)/([0-9]+)/(.*)/visit visit-site.php?siteurl=$3 [NC]
</IfModule>
so i can visit the site with this link
mysitedotcom/2011/09/mypost/visit,
sometime i want to change my permalink with structure like mysitedotcom/item/mypost
when i can visiting another site with mysitedotcom/item/mypost/visit
, please help me to change the .htaccess
code above so I can access with mysitedotcom/item/mypost/visit
link.
© Server Fault or respective owner