开发者

.htaccess file not working

开发者 https://www.devze.com 2023-02-10 01:22 出处:网络
I am new to the whole .htacess file thing :) I just set it up with this inside it: RewriteEngine On Rewrite开发者_运维知识库Rule ^/outdoors/trees/([0-9]+) /outdoors/trees/tree.php?tree_id=$1

I am new to the whole .htacess file thing :)

I just set it up with this inside it: RewriteEngine On Rewrite开发者_运维知识库Rule ^/outdoors/trees/([0-9]+) /outdoors/trees/tree.php?tree_id=$1

And I made a test page here: http://www.comehike.com/outdoors/trees/tree.php?tree_id=20

To look like this: http://www.comehike.com/outdoors/trees/numeric_tree_id/tree-name

But I am seeing now changes in my server behavior. Any ideas of what can be the problem?

Thank you!


I guess the preceding slashes should be removed. So try this:

RewriteEngine On
RewriteRule ^outdoors/trees/([0-9]+) outdoors/trees/tree.php?tree_id=$1
0

精彩评论

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