开发者

URL Rewrite in .htaccess?

开发者 https://www.devze.com 2023-01-31 09:46 出处:网络
i want to use URL rewriting in this link and will apply to all website but it\'s not work why? and what can i do if i want to using URL rewriting??

i want to use URL rewriting in this link and will apply to all website but it's not work why? and what can i do if i want to using URL rewriting??

the link http://www.example.com/showpage/php?page_id = 98 and i want to be http://www.example.com/showpage/98

i test it in local but not work and test it online in my domain not work. if any tools must run in my domain

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase / 
RewriteRule ^showpage/$ show开发者_高级运维page.php?page_id=$1 
</IfModule>


$1 is not defined by a pattern. Try this:

RewriteRule ^showpage/(.*)$ showpage.php?page_id=$1 
0

精彩评论

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