Mam problem, próbuję zrobić coś takiego:

  1. RewriteRule ^katalog1/katalog2/(.*)$ katalog1/katalog2/plik.php?lp=$1 [QSA,L]


Kiedy wchodzę do np.

strona.pl/katalog1/katalog2/001

wyskakuje mi 404 Not Found

Całość pliku htaccess zrobiłem tak:
  1. Options -Multiviews -Indexes +FollowSymLinks
  2. RewriteEngine On
  3. RewriteBase /
  4. # remove file extensions
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{REQUEST_FILENAME}\.php -f
  7. RewriteRule ^(.*)$ $1.php
  8. # redirect all www traffic
  9. RewriteCond %{HTTP_HOST} ^www\.strona\.pl$
  10. RewriteRule ^.*$ <a href="http://strona.pl%{REQUEST_URI}" target="_blank">http://strona.pl%{REQUEST_URI}</a>
  11. #get rid of trailing slashes
  12. RewriteCond %{HTTP_HOST} ^(www.)?strona\.pl$ [NC]
  13. RewriteRule ^(.+)/$ <a href="http://strona.pl/$1" target="_blank">http://strona.pl/$1</a> [R=301,L]