I can make the following URL:
- example.com/video1
redirect to:
- example.com/video/video1.php
but I would like it to display:
- example.com/video1
in the browser but it is not.
It is displaying:
- example.com/video/video1.php
And when I go to URL:
- example.com/video/video1.php
it should display
- example.com/video1
in the browser but it is displaying:
- example.com/video/video1.php
How do I do this?
Here is what I am using:
RewriteEngine On
RewriteRule ^video1 /videos/video1.php [QSA,NC,L]
RewriteRule ^/videos/video1.php /video1 [R=301,L]