GITLAB

Snippets

Sign in
  • Sign in

PS-legacy.htaccess
Add new snippet


#48 by 72f60816e60779e1cff35b00d383cb94?s=40&d=identicon doekia
← discover snippets
PS-legacy.htaccess Buy Me a Coffee at ko-fi.com
raw
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
RewriteEngine on
RewriteRule . - [E=REWRITEBASE:/]

# legacy since 1.2.5 urls
RewriteRule ^best-sales\.php$ %{ENV:REWRITEBASE}index.php?controller=best-sales [L,QSA]
RewriteRule ^contact\.php$ %{ENV:REWRITEBASE}index.php?controller=contact [L,QSA]
RewriteRule ^contact\-form\.php$ %{ENV:REWRITEBASE}index.php?controller=contact [L,QSA]
RewriteRule ^manufacturer\.php$ %{ENV:REWRITEBASE}index.php?controller=manufacturer [L,QSA]
RewriteRule ^new-products\.php$ %{ENV:REWRITEBASE}index.php?controller=new-products [L,QSA]
RewriteRule ^password\.php$ %{ENV:REWRITEBASE}index.php?controller=password [L,QSA]
RewriteRule ^prices-drop\.php$ %{ENV:REWRITEBASE}index.php?controller=prices-drop [L,QSA]
RewriteRule ^sitemap\.php$ %{ENV:REWRITEBASE}index.php?controller=sitemap [L,QSA]
RewriteRule ^supplier\.php$ %{ENV:REWRITEBASE}index.php?controller=supplier [L,QSA]
RewriteRule ^address\.php$ %{ENV:REWRITEBASE}index.php?controller=address [L,QSA]
RewriteRule ^addresses\.php$ %{ENV:REWRITEBASE}index.php?controller=addresses [L,QSA]
RewriteRule ^authentication\.php$ %{ENV:REWRITEBASE}index.php?controller=authentication [L,QSA]
RewriteRule ^cart\.php$ %{ENV:REWRITEBASE}index.php?controller=cart [L,QSA]
RewriteRule ^discount\.php$ %{ENV:REWRITEBASE}index.php?controller=discount [L,QSA]
RewriteRule ^history\.php$ %{ENV:REWRITEBASE}index.php?controller=history [L,QSA]
RewriteRule ^identity\.php$ %{ENV:REWRITEBASE}index.php?controller=identity [L,QSA]
RewriteRule ^my-account\.php$ %{ENV:REWRITEBASE}index.php?controller=my-account [L,QSA]
RewriteRule ^order-follow\.php$ %{ENV:REWRITEBASE}index.php?controller=order-follow [L,QSA]
RewriteRule ^order-slip\.php$ %{ENV:REWRITEBASE}index.php?controller=order-slip [L,QSA]
RewriteRule ^order\.php$ %{ENV:REWRITEBASE}index.php?controller=order [L,QSA]
RewriteRule ^search\.php$ %{ENV:REWRITEBASE}index.php?controller=search [L,QSA]
RewriteRule ^stores\.php$ %{ENV:REWRITEBASE}index.php?controller=stores [L,QSA]
RewriteRule ^order-opc\.php$ %{ENV:REWRITEBASE}index.php?controller=order-opc [L,QSA]
RewriteRule ^guest-tracking\.php$ %{ENV:REWRITEBASE}index.php?controller=guest-tracking [L,QSA]
RewriteRule ^products-comparison\.php$ %{ENV:REWRITEBASE}index.php?controller=products-comparison [L,QSA]
RewriteRule ^product\.php$ %{ENV:REWRITEBASE}index.php?controller=product [QSA,L]