bubbles Posted March 9, 2015 Report Posted March 9, 2015 Am urmatorul cod :<?phpsession_start();require 'src/facebook.php';require 'functions.php';date_default_timezone_set("Europe/Bucharest");$facebook = new Facebook(array( 'appId' => '111', 'secret' => '222', 'cookie' => true, ));$user = $facebook->getUser();$mail_facebook = trim($femail);if ($user) { try { $user_profile = $facebook->api('/me'); $fbid = $user_profile['id']; $fbfullname = $user_profile['name']; $femail = $user_profile['email']; checkuser($fuid,$funame,$fbfullname,$femail,$fbid); } catch (FacebookApiException $e) { error_log($e); $user = null; }}if ($user) {$logoutUrl = $facebook->getLogoutUrl(array('next' => 'https://website.ro/logout.php', ));} else {$loginUrl = $facebook->getLoginUrl(array('scope'=> 'email', ));}?>Iar pentru a apela link-ul pentru logarea pe site prin facebook folosesc<?php echo $loginUrl; ?>Insa nu pot sa-mi explic de ce nu se intampla absolut nimic cand dau click pe acel link de pe o pagina rescrisa cu RewriteRule care are si o variabila de tip GET in url.Exemple :RewriteRule test/$ /test.phpRewriteRule ^teste-([^/]*)$ /teste.php?lot=$1 [L]test.php ->mergetest/ -> mergeteste.php?lot=exam ->mergeteste-examen -> NU MERGE Quote
Dubfx Posted March 9, 2015 Report Posted March 9, 2015 Inlocuieste ([^/]*) cu ([a-z,A-Z,0-9]+) sau ... (.*) Quote
bubbles Posted March 9, 2015 Author Report Posted March 9, 2015 La fel. Bag picioru de inteleg ce are. Quote
sclipici Posted March 11, 2015 Report Posted March 11, 2015 (edited) foloseste asta:RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-lRewriteRule ^(.+)$ index.php?url=$1 [QSA,L] Edited March 11, 2015 by sclipici 1 Quote