Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne].htaccess i błąd 403
stefik4
post 14.03.2014, 15:24:07
Post #1





Grupa: Zarejestrowani
Postów: 176
Pomógł: 1
Dołączył: 18.11.2007

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


Jak w tytule napisałem proste dyrektywy w .htaccess i umieściłem plik w filderze /beta/ na koncie głównym.

  1. Options FollowSymLinks
  2. RewriteEngine On
  3.  
  4. RewriteCond %{HTTP_HOST} ^mojastrona.pl(.*) [NC]
  5. RewriteRule ^(.*)$ <a href="http://www.mojastrona.pl/$1" target="_blank">http://www.mojastrona.pl/$1</a> [R=301,L]
  6. RewriteBase /
  7. DirectoryIndex index.php
  8.  
  9.  
  10. RewriteRule ^sposob-dzialania$ /beta/sposob-dzialania.php [L]


Wchodze pod adres: http://www.mojastrona.pl/beta/sposob-dzialania

I niesttey wywala błąd 403:
Forbidden

You don't have permission to access /beta/sposob-dzialania.php on this server.

Ten post edytował stefik4 14.03.2014, 15:27:10
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: 19.07.2025 - 10:55