开发者

.htaccess rewrite for a simpleton

开发者 https://www.devze.com 2023-01-08 09:47 出处:网络
I can generally figure this kind of thing out on my own, but I\'m totally lost on how to write a rewrite rule in .htaccess

I can generally figure this kind of thing out on my own, but I'm totally lost on how to write a rewrite rule in .htaccess

my current url looks like:

index.php?p=page&v=2&i=2&pg=01

I'm 开发者_开发技巧trying to make the url look like this:

/vol2/iss2/pg01/

Any help greatly appreciated! Thanks!


Try something like following

RewriteEngine on
RewriteRule ^vol([0-9]+)/iss([0-9]+)/pg([0-9]+)/$ index.php?p=page&v=$1&i=$2&pg=$3
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号