开发者

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

开发者 https://www.devze.com 2023-04-07 12:03 出处:网络
please help me with this one... I am really new to this subject. I have placed this in my .htaccess file.

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

精彩评论

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

关注公众号