我要重写我的网址,但我不能做正确的方式。
I want to rewrite my url but i cant do proper way.
mysitename.net/index.php?title=Category:Public_Companies&pagefrom=8
要:
mysitename.net/Category:Public_Companies/8
我怎样才能做到这一点。
How can i do that.
如果您有其他的页面比范畴,我建议使用这样的:
If you have other pages than Category, I recommend to use this:
RewriteRule ^Category:(.+)/(.+)$ /index.php?title=Category:$1&pagefrom=$2 [L]
另外,使用这样的:
Otherwise, use this:
RewriteRule ^(.+)/(.+)$ /index.php?title=$1&pagefrom=$2 [L]