Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z konfiguracją .htaccess
northwest
post
Post #1





Grupa: Zarejestrowani
Postów: 788
Pomógł: 1
Dołączył: 17.09.2004

Ostrzeżenie: (10%)
X----


Witam serdecznie,
Mam taki plik .htaccess:

  1. Options +FollowSymLinks
  2. RewriteEngine on
  3.  
  4. #Przekierowanie na https
  5. RewriteEngine on
  6. RewriteCond %{HTTP_HOST} ^mojastrona.com [nc]
  7. RewriteRule ^(.*)$ <a href="http://www.mojastrona.com/$1" target="_blank">http://www.mojastrona.com/$1</a> [r=301,nc]
  8.  
  9. #Przekierowanie na https
  10. RewriteEngine On
  11. RewriteCond %{SERVER_PORT} 80
  12. RewriteRule ^(.*)$ <a href="https://www.mojastrona.com" target="_blank">https://www.mojastrona.com</a>
  13.  
  14. <Files .htaccess>
  15. order allow,deny
  16. deny from all
  17. </Files>
  18.  
  19.  
  20. RedirectMatch 403 ^.*/userfiles/(.*).php(.*)$
  21. RedirectMatch 403 ^.*/userfiles/(.*).exe(.*)$
  22. RedirectMatch 403 ^.*/userfiles/(.*).js(.*)$
  23. RedirectMatch 403 ^.*/userfiles/(.*).html(.*)$
  24. RedirectMatch 403 ^.*/userfiles/(.*).php2(.*)$
  25. RedirectMatch 403 ^.*/userfiles/(.*).php3(.*)$
  26. RedirectMatch 403 ^.*/userfiles/(.*).php4(.*)$
  27. RedirectMatch 403 ^.*/userfiles/(.*).php5(.*)$
  28. RedirectMatch 403 ^.*/userfiles/(.*).php6(.*)$
  29. RedirectMatch 403 ^.*/userfiles/(.*).php7(.*)$
  30. RedirectMatch 403 ^.*/userfiles/(.*).phps(.*)$
  31. RewriteRule (.*)\.html index.php?query=$1&lng=$2&%{QUERY_STRING}&modrw [L]



Mam na serwerze Katalog i w nim parę plików html:
https://www.mojastrona.com/banery/strona1.html
https://www.mojastrona.com/banery/strona2.html
https://www.mojastrona.com/banery/strona3.html
https://www.mojastrona.com/banery/strona4.html


Jednak po wywołaniu powyższego adresu w przeglądarce wyświetla mi się strona główna - zamiast tamtego pliku...

Czy mógłby mi ktoś podpowiedzieć co należy poprawić, żeby to zadziałało?
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 Aktualny czas: 22.08.2025 - 00:09