Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]htaccess Rewrite
smiady
post
Post #1





Grupa: Zarejestrowani
Postów: 137
Pomógł: 2
Dołączył: 2.07.2007
Skąd: Ostrzeszów

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


Witam mam takie reguły w htaccess

  1. RewriteEngine On
  2.  
  3. RewriteRule ^([a-zA-Z0-9-z\-\_]+)$ index.php?page=$1
  4. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/$ index.php?page=$1
  5. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)$ index.php?page=$1&subpage=$2
  6. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/$ index.php?page=$1&subpage=$2
  7. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)$ index.php?page=$1&subpage=$2&param1=$3
  8. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/$ index.php?page=$1&subpage=$2&param1=$3


Mam ścieżkę upload/license/dokument.jpg i chce aby ją odpaliło, ale bez nadpisywania jako index.php?page= jaką regułę należy dodać ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
smiady
post
Post #2





Grupa: Zarejestrowani
Postów: 137
Pomógł: 2
Dołączył: 2.07.2007
Skąd: Ostrzeszów

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


Nistety zachowuje się danej tak samo przy obrazkach:

  1. RewriteEngine On
  2.  
  3. ErrorDocument 403 /error.php?code=403
  4. ErrorDocument 404 /error.php?code=404
  5. ErrorDocument 500 /error.php?code=500
  6.  
  7. RewriteCond %{REQUEST_URI} !^/(.+)\.(jpg|jpeg|gif|png|bmp)$
  8.  
  9. RewriteRule ^([a-zA-Z0-9-z\-\_]+)$ index.php?page=$1
  10. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/$ index.php?page=$1
  11. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)$ index.php?page=$1&subpage=$2
  12. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/$ index.php?page=$1&subpage=$2
  13. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)$ index.php?page=$1&subpage=$2&param1=$3
  14. RewriteRule ^([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/([a-zA-Z0-9-z\-\_]+)/$ index.php?page=$1&subpage=$2&param1=$3
Go to the top of the page
+Quote Post

Posty w temacie


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: 11.10.2025 - 02:27