Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Prosty mod_rewrite
Ayrox
post
Post #1





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 23.06.2008

Ostrzeżenie: (10%)
X----


RewriteRule ^pozdro.html$ pozdro.html [L]

Mam ten mod_rewrite i chciałbym aby po prostu mójadresstrony.pl/pozdro wyświetlał zawartość mójadresstrony.pl/pozdro.html i nie wiem jak to przerobić ;/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
robos85
post
Post #2





Grupa: Zarejestrowani
Postów: 466
Pomógł: 11
Dołączył: 21.09.2006
Skąd: Szczecin

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


Może tak:

Kod
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^pozdro$ pozdro.html [QSA,L]
Go to the top of the page
+Quote Post
Ayrox
post
Post #3





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 23.06.2008

Ostrzeżenie: (10%)
X----


takie coś nie działa mi;/
Go to the top of the page
+Quote Post
Pilsener
post
Post #4





Grupa: Zarejestrowani
Postów: 1 590
Pomógł: 185
Dołączył: 19.04.2006
Skąd: Gdańsk

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


Cytat
chciałbym aby po prostu mójadresstrony.pl/pozdro wyświetlał zawartość mójadresstrony.pl/pozdro.html

Kod
RewriteRule mojadresstrony.pl/pozdro mojadresstrony.pl/pozdro.html [QSA,L]
- zamieni adres /pozdro na /pozdro.html

U mnie działa.
Go to the top of the page
+Quote Post
Ayrox
post
Post #5





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 23.06.2008

Ostrzeżenie: (10%)
X----


lipa u mnie: 

RewriteRule mojastrona.pl/konto mojastrona.pl/konto.html [QSA,L]

nie działa ;/
Go to the top of the page
+Quote Post
Pilsener
post
Post #6





Grupa: Zarejestrowani
Postów: 1 590
Pomógł: 185
Dołączył: 19.04.2006
Skąd: Gdańsk

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


Może nie masz na serwerze pliku konto.html?
Go to the top of the page
+Quote Post
Ayrox
post
Post #7





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 23.06.2008

Ostrzeżenie: (10%)
X----


owszem mam, to mój cały .htaccess:

RewriteEngine on

# -FrontPage-

IndexIgnore .htaccess */.questionmark.gif* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mojastrona.pl
AuthUserFile public_html/_vti_pvt/service.pwd
AuthGroupFile public_html/_vti_pvt/service.grp

Options 


AddType application/x-httpd-php .html
Options +FollowSymlinks
RewriteRule mojastrona.pl/konto mojastrona.pl/konto.html [QSA,L]

Oczywiście jako mojastrona.pl podstawiam mój prawdziwy adres strony






Czy coś tu jest nie tak w tym htaccess?

Czemu nikt nie jest w stanie mi pomóc? ;d
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 19.08.2025 - 19:44