-1

I try to define following rewrite rule:

The user should enter a url to a directory like: www.url.com/voucher But the real url should be: www.url.com/voucher.php And the user should only see the first url - never the second.

Any ideas? Thank you.

Matthias Stähle
  • 87
  • 1
  • 3
  • 11
  • Does this answer your question? [Remove .php extension with .htaccess](https://stackoverflow.com/questions/4026021/remove-php-extension-with-htaccess) – CBroe Dec 10 '21 at 12:07

1 Answers1

1

Try with this in .htaccess after RewriteEngine on line:

RewriteRule ^voucher /voucher.php 
masterguru
  • 549
  • 4
  • 10