Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> .htaccess + Mod-Rewrite, help
eai
post
Post #1





Grupa: Zarejestrowani
Postów: 367
Pomógł: 10
Dołączył: 20.05.2005

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


.htaccess
Kod
RewriteEngine On
RewriteCond %{REQUEST_URI}      !subdomains
RewriteCond %{HTTP_HOST}  !(^www.domena.pl)
RewriteCond %{HTTP_HOST}        ^(www\.)?(.*).domena.pl$
RewriteRule .*                  /subdomains/%2%{REQUEST_URI}


Efekt jest taki:

www.subdomena.domena.pl
otwiera mi plik index.php z katalogu subdomains/subdomena/

A teraz chciałbym żeby zamiast otwierac plik index.php z katalogu, wywolywal mi index.php z katalogu glownego z parametrem np. index.php?cat=subdomena

Próbowałem sam coś takiego napisać ale mi nie wychodziło :/

pomocy (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)


EDIT: Poradziłem już sobie. Temat do zamknięcia!

Ten post edytował eai 19.04.2006, 10:18:35
Go to the top of the page
+Quote Post

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: 23.08.2025 - 22:21