1

I want every file on my server like this "mywebsite.com/video?id=vgIjgt863_53", I have php so at the moment it would look like this "mywebsite.com/video.php?id=(id)" I need this in htaccess

1 Answer 1

1

Put your htaccess in root folder with this code

Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteCond %{QUERY_STRING} ^id=(.+)$
RewriteRule ^video$ /video.php?id=%1 [L]
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.