Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTAccess] htaccess - przekierowanie jeśli not found
peter13135
post
Post #1





Grupa: Zarejestrowani
Postów: 1 447
Pomógł: 191
Dołączył: 26.03.2008

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


Mam tai plik htaccess

Kod
SetEnv PHP_VER 5
RewriteEngine On


RewriteRule accept,(.*) index.php?module=orders&list=yes&id=$1&act=a
RewriteRule canel,(.*) index.php?module=orders&list=yes&id=$1&act=c
RewriteRule child,del,(.*) index.php?module=child&del=$1


/*
pół kilometra kodu
*/


ErrorDocument 404 http://adres.com.pl/404.html


Jeśli wpiszę takie coś :
http://adres.com.pl/asdasd
to przekieruje mnie na stronę 404.html
a jak takie coś :http://asdasd.adres.com.pl/asdasd
to mam brzydką stronę "not found"

jak to poprawić ?

Ten post edytował peter13135 21.06.2012, 17:22:50
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: 24.08.2025 - 11:33