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
 
Start new topic
Odpowiedzi
peter13135
post
Post #2





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

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


Jest sobie folder public_html <- tam plik index.php, .htaccess i pare innych.
Jak wygląda plik .htaccess to wam z grubsza pokazałem.

Co masz na myśli "do jakiego katalogu odwołuje się subdomena (IMG:style_emoticons/default/questionmark.gif)
Tu nie ma subdomeny sam sobie wymyśliłem

asdasddasdas.adres.pl i chciałbym, żeby to przekierowało mnie do adres.pl/404.html
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: 12.10.2025 - 07:15