Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [modrewrite] Podkatalog
propage
post
Post #1





Grupa: Zarejestrowani
Postów: 330
Pomógł: 0
Dołączył: 25.01.2008

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


w pliki hta mam
taką regułe

RewriteRule ^([a-zA-Z._]+)/$ index.php?p=cetegory&c=$1 [L]

Przez to nie moge dostać się do admina, który jest w podkatalogu /admin

probowalem przed tą reguła dodać poprostu

RewriteRule ^admin/$ /admin/ [L]

Nie znam modrewrite az tak dobrze i nie wiem jak to zrobic
Go to the top of the page
+Quote Post
wookieb
post
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Kod
RewriteRule ^admin(.*) admin$1 [L]

Pisane z głowy. Możliwy error.
Go to the top of the page
+Quote Post
propage
post
Post #3





Grupa: Zarejestrowani
Postów: 330
Pomógł: 0
Dołączył: 25.01.2008

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


nie działa
Go to the top of the page
+Quote Post
wookieb
post
Post #4





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




1) daj cały htaccess
2) mi działa
3) jezeli mozesz to podaj link do strony.
Go to the top of the page
+Quote Post
.radex
post
Post #5





Grupa: Zarejestrowani
Postów: 1 657
Pomógł: 125
Dołączył: 29.04.2006

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


przed:

RewriteRule ^([a-zA-Z._]+)/$ index.php?p=cetegory&c=$1 [L]

dodaj:

RewriteCond $1 !^(admin)
Go to the top of the page
+Quote Post
propage
post
Post #6





Grupa: Zarejestrowani
Postów: 330
Pomógł: 0
Dołączył: 25.01.2008

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


RewriteCond $1 !^(admin)
pomogło

Ten post edytował propage 15.08.2008, 21:44:26
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.09.2025 - 10:05