2013-06-05 2 views
0

원래 = http://ritetag.techreanimate.com/signin.php?network=twitter&fhfghdfghh=sadfgsdf 재 작성 =modrewrite 도움

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^signin/([^/]*)$ /signin.php?network=$1 

내가이 작업을 가지고하지만 난 후 올 GET을 사용하여 다른 변수를 얻을 어차피 http://ritetag.techreanimate.com/signin/twitter?fhfghdfghh=sadfgsdf, 어떻게 내가 발가락 재 작성 다른 물건 작동하도록 할을 얻는다 네트워크보다.

답변

0

해결했습니다.

한다 RewriteEngine RewriteBase 에/

#This rewrite has no L flag so the second one can continue 
    #Signin.php can have multiple networks like signin/twitter = signin.php?network=twitter 
    RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^signin/([^/]*)$ /signin.php?network=$1 [QSA] 

    #this rewrite just allows to use files withouth the .php 
    # Like about instead of about.php 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME}.php -f 
    RewriteRule ^(.+)$ /$1.php [QSA]