1

I'm trying to make the user type an easier URL.

So users query for: https://example.com/invoices/X123

And the .htaccess would rewrite (mask) to

https://api.example.com/invoices/1/getInvoicefromHash.html?hash=X123

But somehow it does not work. It just redirects...

This is my .htaccess:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^invoices/(.*)$ http://api.domain.com/1/getInvoicefromHash.html?hash=$1 [QSA,L]   
MrWhite
  • 13,315
Miguel Q
  • 121

0 Answers0