Reputation: 127
So this is the original url of the content:
site.com/embed/apple/orange/test1.html
and i want people to access the content using this format:
site.com/premium/a/o/test1/
I tried using this in .htaccess but it dosen't work:
RewriteRule ^premium/a/o/(.*) embed/apple/orange/([^/]*)\.html
Can someone please give me the exact rule that i need?
Upvotes: 0
Views: 36
Reputation: 15070
When you have a group (.*)
you can use this later with $1
RewriteRule ^premium/a/o/(.*)$ embed/apple/orange/$1.html
Upvotes: 1