Jump to content

Need Help on static url


andz

Recommended Posts

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

 

rewriterule ^article/(.*).html$ /read.php?articleid=$1 [L]

 

</IfModule>

 

 

Using mod_rewrite will transform my url into static one? In the above code, the article/ becomes part of the physical url. http://localhost.com/article/

 

how could this be when the RewriteBase must be http://localhost.com/

Link to comment
https://forums.phpfreaks.com/topic/67185-need-help-on-static-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.