开发者

.htaccess for hiding url details

开发者 https://www.devze.com 2022-12-23 18:29 出处:网络
Options +FollowSymlinks RewriteEngine on RewriteRule ^开发者_JAVA技巧WR-(.*)\\.html$ WR.php?act=show
         Options +FollowSymlinks
RewriteEngine on
RewriteRule ^开发者_JAVA技巧WR-(.*)\.html$ WR.php?act=show

i have created .htaccess file to rewrite WR.php?act=show to .html extension and save this file in a folder where my source file are residing. but it is not working can anybody help me please....


try this htaccess rule generator
or
this,
these will definitely help you a lot.


The rule looks fine to me. Copying and pasting into a .htaccess on my own server redirects WR-foo.html to WR.php?act=show as expected.

Depending on what exactly is happening (are you seeing an error? is it just not redirecting? redirecting to the wrong place? etc), you might want to try enabling logging for mod_rewrite. See the RewriteLog directive (and RewriteLogLevel just below that). The Apache error log is also always worth a look.

0

精彩评论

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

关注公众号