Jump to content
Sign in to follow this  
coolszach

pomoc przy rewrite .htaccess

Recommended Posts

witam!

mam taki oto kod:

RewriteEngine on
RewriteBase /

RewriteRule .* index.php

php_flag magic_quotes_gpc off
php_flag register_globals off

...i chcialbym aby wyjatkowo plik .htaccess nie dzialal na plik w glownym katalogu info.txt

w sensie aby normalnie wyswietlal zawartosc pliku tekstowego w glownym katalogu

prosze o pomoc

Share this post


Link to post
Share on other sites

spróbuj dodać:

RewriteRule \.(txt)$ info.txt [L]

przed

RewriteRule .* index.php

//edit

albo

RewriteRule ^info\.txt$ info.txt [L]

(pierwszy przykład wszystkie zapytania o plik txt w adresie wyświetli nam info.txt)

Edited by Kear

Share this post


Link to post
Share on other sites
RewriteRule .* index.php

=>

RewriteRule !^info\.txt$ index.php

Tak jak my, lubisz podróżować? Tutaj znajdziesz najlepsze oferty tanich lotów. Loty do Europy, Azji czy Ameryki. Codziennie mamy nowe oferty biletów lotniczych.

Jeśli lubisz pogadać o podróżach i lataniu to wpadnij też na forum podróżnicze.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use Privacy Policy