开发者

URL rewriting....what am I doing wrong?

please help me with this one... I am really new to this subject. I have placed this in my .htaccess file.

RewriteEngine On

RewriteRule ^gallery/([0-9]+)/?$ viewgallery.php?cid=1 [NC,L]

To make the link

http://www.123456.com/viewgallery.p开发者_StackOverflowhp?cid=1

look like this...

http://www.123456.com/viewgallery/1/

What I am doing wrong... ? It is not working...

Any help is appreciated! Thank you very much....


You're rewriting "gallery/1/" instead of viewgallery.

RewriteRule ^viewgallery/([0-9]+)/?$ viewgallery.php?cid=$1 [NC,L]

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜