Sasa Posted October 6, 2013 Report Share Posted October 6, 2013 .htaccess failā ir ieraksts: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Jautājums ja man uz localhosta lapa neatrodas tieši iekš htdocs mapes, bet gan //localhost/nosaukums/wordpress/ tad man ir kaut kas jāmaina .htaccess failā, jo tagad ir tā ja es spiežu uz kāda linka tad mani pārmet atpakaļ uz localhost. Quote Link to comment Share on other sites More sharing options...
Val Posted October 6, 2013 Report Share Posted October 6, 2013 RewriteBase Quote Link to comment Share on other sites More sharing options...
Sasa Posted October 6, 2013 Author Report Share Posted October 6, 2013 (edited) RewriteBase nomainīju uz /nosaukums/wordpress/ - nekas nemainījās. .htaccess fails atrodas tanī pašā mapē kurā pati lapa. Edited October 6, 2013 by Sasa Quote Link to comment Share on other sites More sharing options...
gurkjis Posted October 6, 2013 Report Share Posted October 6, 2013 (edited) RewriteRule . /index.php [L] pamēģini bez /: RewriteRule . index.php [L] man vienā lapā ir šādi: RewriteRule ^[a-zA-Z0-9_/\-]*$ index.php [L] tas punkts, kas tavā gadījumā, kā regex simbolizē "jebkāds viens simbols", tad tas droši vien būtu jāraksta šādi,lai tver "jebkāds strings": RewriteRule .* index.php [L] Edited October 6, 2013 by gurkjis 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.