nemakuphp Posted July 21, 2009 Report Share Posted July 21, 2009 (edited) Pieņemsim, ka man ir links http://domens.lv/index.php?p=x&a=y Man izdodas veiksmīgi pārvērs par http://domens.lv/x/y'>http://domens.lv/x/y RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^x/(.*) index.php?p=x&a=$1 RewriteRule ^z/(.*) index.php?p=z&s=$1 BET, ja es ieeju tikai http://domens.lv/x,'>http://domens.lv/x, tad uzmet kļūdas paziņojumu Not Found The requested URL /x was not found on this server. Kā šo varētu labot? Derētu arī tāds variants, ka saiti http://domens.lv/x uzskata par http://domens.lv/index.php?p=x&a=* (Zvaigznītes vietā jebkas) Ceru, ka spēsiet palīdzēt. Edited July 21, 2009 by nemakuphp Quote Link to comment Share on other sites More sharing options...
marcis Posted July 21, 2009 Report Share Posted July 21, 2009 RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(x|y)/(.*)?$ index.php?p=$1&a=$2 Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted July 22, 2009 Report Share Posted July 22, 2009 piedāvāju veidot unikālu Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?key=$1 [L,QSA] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.