htaccess pretty urls setup

前端 未结 2 548
Happy的楠姐
Happy的楠姐 2020-12-10 10:16

I\'m using htaccess for the first time to make pretty urls for my website html files and 1 php file. I was just wondering if I would be able to get some advice on my htacces

2条回答
  •  臣服心动
    2020-12-10 10:57

    This line

    RewriteRule ^(.+)/([0-9]+)/?$ phppage.php?p=$1 [L]
    

    is going to send some pages to phppage.php even though they don't look like

    http://www.domain.com/subdomain/phppage/1/
    

    because there is no mention of phppage in the first argument to RewriteRule.

提交回复
热议问题