Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [.htaccess] Pobieranie danych na / z /site/
infoo1
post
Post #1





Grupa: Zarejestrowani
Postów: 117
Pomógł: 0
Dołączył: 12.11.2008

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


Jak zrobić, aby po wpisaniu http://localhost/ pobierało dane z /site/, czyli to samo, co po wpisaniu http://localhost/site/?
Na razie mam takie coś:
Kod
RewriteEngine On
         RewriteBase /
         RewriteRule ^(.*?)$ site/$1 [L]

Pokazuje (w tytule strony 403 Forbidden):
Cytat
You don't have permission to access /site/redirect:/site/index.php on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Skąd ono bierze to pogrubione?

Jak wchodzę na http://localhost/index, to pokazuje ten błąd, na http://localhost/index.php lub http://localhost/, error 500.
Co zrobić, aby działało?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 14.09.2025 - 16:41