gaccho Posted May 20, 2006 Report Share Posted May 20, 2006 Kas jaadara, lai url neparaadiitos .php paplashinaajumi? jaaredigjee .htaccess? bet no taa es arii nesaprotu: RewriteEngine on RewriteBase localhost RewriteRule ^galerija\.php$ galerija Taa laikam nav pareizi... Un ja es gribu vairaakaam lapaam, piem.: lapai www.kkas.lv/bildes.php un www.kkas.lv/galerija.php nonjemt tos php paplashnaajumus, tad man katra ir jaaraksta tajaa .htaccess? piem. RewriteRule ^bildes\.php$ bildes RewriteRule ^galerija\.php$ galerija (tikai pareizaa variantaa)? un vai pietiek, ka tas ir ierakstiits .htaccess failaa, jeb tas ir kkur veel jaapiemin lapas kodaa? huh Link to comment Share on other sites More sharing options...
Vebers Posted May 21, 2006 Report Share Posted May 21, 2006 (edited) bubu sastādītajā php.lv/f saturā nav jāskatās? To sauc par: clean urls clean urls * http://php.lv/f/index.php?showtopic=80 * http://php.lv/f/index.php?showtopic=1586 * http://php.lv/f/index.php?showtopic=274 * http://php.lv/f/index.php?showtopic=1952 Edited May 21, 2006 by MakaTaNaw Link to comment Share on other sites More sharing options...
gaccho Posted May 21, 2006 Author Report Share Posted May 21, 2006 Izskatiiju visu cauri... nu nestraadaa: Izmeegjinaaju: RewriteEngine on Options +FollowSymlinks RewriteBase localhost -------------------------------- <Files index> ForceType application/x-httpd-php </Files> -------------------------------- RewriteCond %{REQUEST_galerija.php} !-f //ko noziimee shie !-f un !-d RewriteCond %{REQUEST_galerija.php} !-d RewriteRule ^(.*)$ galerija.php?dir=$1 [QSA,L] -------------------------------- RewriteRule galerija+[.]php galerija$1 kas te ir nepareizi un kursh ir pareizais variants no shiem? Link to comment Share on other sites More sharing options...
Vebers Posted May 21, 2006 Report Share Posted May 21, 2006 .htaccess faili enabloti? mod_rewrite arī ? Link to comment Share on other sites More sharing options...
gaccho Posted May 21, 2006 Author Report Share Posted May 21, 2006 lai enablotu .htaccess kas jaaizlabo hhtpd.conf failaa? man ir: AllowOverride None (kad pamainu uz All, vai AuthConfig, paraadaas 500 Internal Server Error) LoadModule rewrite_module modules/mod_rewrite.so AccessFileName .htaccess Link to comment Share on other sites More sharing options...
KAC Posted May 21, 2006 Report Share Posted May 21, 2006 veel jau ir AddModule mod_rewrite.c Link to comment Share on other sites More sharing options...
gaccho Posted May 21, 2006 Author Report Share Posted May 21, 2006 Shis AddModule mod_rewrite.c nemaz man nav nekur httpd.conf failaa pienmineets. tip pievienoju pats, bet tad uzreiz apaci nevar palaist... :o Link to comment Share on other sites More sharing options...
Klez Posted May 21, 2006 Report Share Posted May 21, 2006 liikas rokas. skaties apa4e lapaa Link to comment Share on other sites More sharing options...
gaccho Posted May 21, 2006 Author Report Share Posted May 21, 2006 (edited) ok, taatad iztiek bez taa Add AddModule mod_rewrite.c bet kaapeec tas 500 INTERNAL SERVER ERROR raadaas? eroor logaa ir: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary... ko dariit? Vai ar sho .htaccess faila saturu pietiktu, lai nomainiitu taatad saakuma lapas url uz www.kkas.lv/sakums un taapat arii galerijas lapai... ? php kodaa nav nekas jaamaina? " RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/sakums /index.php RewriteRule ^/galerija /galerija.php" Edited May 21, 2006 by gaccho Link to comment Share on other sites More sharing options...
KAC Posted May 21, 2006 Report Share Posted May 21, 2006 taapeec, ka modulis nav pievienots!!! Link to comment Share on other sites More sharing options...
gaccho Posted May 21, 2006 Author Report Share Posted May 21, 2006 The AddModule and ClearModuleList directives no longer exist. These directives were used to ensure that modules could be enabled in the correct order. The new Apache 2.0 API allows modules to explicitly specify their ordering, eliminating the need for these directives. Un kaa tad ar sho? Link to comment Share on other sites More sharing options...
Kaklz Posted May 22, 2006 Report Share Posted May 22, 2006 ok, taatad iztiek bez taa Add AddModule mod_rewrite.c bet kaapeec tas 500 INTERNAL SERVER ERROR raadaas? eroor logaa ir: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary... ko dariit? Uzmanīgi izlasi kļūdas paziņojumu "maximum number of internal redirects reached". Latviski runājot Apache ir centies pārrakstīt tavus URL, bet iegājis ciklā. Pārskati savu .htaccess failu vai tur gadījumā nevar izveidoties cikls. Link to comment Share on other sites More sharing options...
gaccho Posted May 26, 2006 Author Report Share Posted May 26, 2006 .htaccess faila saturs ir: "RewriteEngine on Options +FollowSymlinks RewriteRule ^Sakums$ /index.php" Vienkaarshi gribu, lai saakuma lapas adresee paraadiitos nevis index.php, bet Sakums... Tas vispaar ir pareizi? kur te cikls var veidoties? a nav gadiijumaa jaaizmanto RewriteBase? kaut gan ja ierakstu RewriteBase localhost, paraadaas, ka "RewriteBase: argument is not a valid URL, referer: http://localhost/index.php" Link to comment Share on other sites More sharing options...
J0ke Posted May 31, 2006 Report Share Posted May 31, 2006 domāju ka tev vienkāršāk būtu lietot MultiViews .htaccess failā liekam: Options -Indexes +MultiViews tad sanāks http://domains/woot.php vietā http://domains/woot (bez baisā .php) :P Link to comment Share on other sites More sharing options...
Recommended Posts