I am wondering, why folder renaming doesn’t work. RewriteRule ^pl/(.*) public/$ 1
Lets say I have a url like:
site.com/public/index.html
Now I want to rewrite the url to
site.com/pl/index.html
"pl" is not a folder rather just a name!
The rest works fine. Why just that one rule doesn’t work?
my .htaccess
RewriteEngine on RewriteRule ^dekoracyjne.html$ decorative.php [NC,L] RewriteRule ^pl/(.*) public/$ 1 RewriteRule ^dekoracyjne/(.*) decorative/$ 1 RewriteRule ^techniczne.html$ architectural.php [NC,L] RewriteRule ^techniczne/(.*) architectural/$ 1 RewriteRule ^show.html/([-\w]+)$ show.php?id=$ {products:$ 1} [L] RewriteRule ^p.html$ product_configurator.php [NC,L] RewriteRule ^show_c\.html/([-*\w]+)$ show_c.php?cat=$ {catcolors:$ 1} [L] RewriteRule ^(product_configurator)\.html/(\d+)&([-\w]+)$ $ 1.php?prometheus_id=$ 2&id=$ {products:$ 3} [L] RewriteRule ^(ss_c)\.html/(\d+)&([-\w]+)$ $ 1.php?prometheus_id=$ 2&id=$ {products:$ 3} [L] # Rewrite other ".html" requests to ".php" RewriteRule (.+)\.html$ $ 1.php [L]