My current url is
I want to display my url as
I use the following code but it not woking
RewriteEngine On
RewriteRule ^post/(.*) /post.php?postid=$1
I think it's because the rewrite engine is look for:
Instead of looking for:
Try adding:
RewriteBase /b2b/
before the RewriteRule.
Remove the /
before post.php?
. So your code should be:
RewriteEngine On
RewriteRule ^post/(.*) post.php?postid=$1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.