php - mod_rewrite with web.config how to activate GET functions? -
hello guys far i'm concerned, web.config file own rewrites urls instead of showing http://www.site.com/page.php shows http://www.site.com/page , functions won't work.
here code of web.config:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <rewrite> <rules> <rule name="imported rule 1"> <match url="^(|/)$" ignorecase="false" /> <action type="rewrite" url="index.php?url={r:1}" appendquerystring="false" /> </rule> <rule name="imported rule 2"> <match url="^([a-za-z0-9_-]+)(|/)$" ignorecase="false" /> <action type="rewrite" url="index.php?url={r:1}" appendquerystring="false" /> </rule> <rule name="imported rule 3"> <match url="^(.*)\.htm$" /> <action type="rewrite" url="{r:1}.php" /> </rule> <rule name="imported rule 4"> <match url="^(|/)$" ignorecase="false" /> <action type="rewrite" url="index.php?page={r:1}" appendquerystring="false" /> </rule> <rule name="imported rule 5"> <match url="^([a-za-z0-9_-]+)(|/)$" ignorecase="false" /> <action type="rewrite" url="index.php?url={r:1}" appendquerystring="false" /> </rule> </rules> </rewrite> </system.webserver> </configuration>
any ideas on how can allow php $_get function?
edit: fixed changing appendquerystring="false" appendquerystring="true" give thanks helping!
this done because of "appendquerystring="false" changing attribute true fixed problem.
php mod-rewrite web-config
No comments:
Post a Comment