Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML] przekierowanie do odpowiedniego folderu, htaccess
harbii
post 18.06.2015, 14:47:43
Post #1





Grupa: Zarejestrowani
Postów: 311
Pomógł: 1
Dołączył: 27.05.2006

Ostrzeżenie: (0%)
-----


W pliku .htaccess mam takie zapisy odnośnie przekierowań.
  1. RewriteEngine On
  2. # uncomment the following line, if you are having trouble
  3. # getting no_script_name to work
  4.  
  5.  
  6. #RewriteBase /
  7.  
  8. # Przekierowanie na https:
  9. #RewriteCond %{HTTPS} off
  10. #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
  11.  
  12.  
  13. #RewriteRule ^(.+)/$ $1 [R=301,L]
  14.  
  15. # we skip all files with .something
  16. #RewriteCond %{REQUEST_URI} \..+$
  17. RewriteCond %{REQUEST_FILENAME} -f [OR]
  18. RewriteCond %{REQUEST_FILENAME} -d
  19. #RewriteCond %{REQUEST_URI} !\.html$
  20. RewriteRule .* - [L]
  21.  
  22. # we check if the .html version is here (caching)
  23. #RewriteRule ^$ index.html [QSA]
  24. #RewriteRule ^([^.]+)$ $1.html [QSA]
  25. #RewriteCond %{REQUEST_FILENAME} !-f
  26.  
  27. # no, so we redirect to our front web controller
  28. RewriteRule ^(.*)$ index.php [QSA,L,E=noconntimeout:1]
  29. </IfModule>
  30.  


w momencie jak klikam na jakiś link zamistast:
127.0.0.1/strona/blog1/index.php
otwiera mi:
127.0.0.1/blog1/index.php

czy można to w pliku .htaccess ustawić aby doklejało cały adres?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 16:08