Mobile app version of vmapp.org
Login or Join
Becky754

: How can I mask URLs with subdirectories to display the same URL? We have a website called example.com I want these paths and their subdirectories: example.com/vip/members/alice/watch example.com/vip/members/alice/bag

@Becky754

Posted in: #Apache #Masking #Php #Subdirectory #UrlRewriting

We have a website called example.com

I want these paths and their subdirectories:

example.com/vip/members/alice/watch

example.com/vip/members/alice/bag

to be permanently displayed to visitors as:

example.com/vip/alice

In order for the /watch, /bag, and other subdirectories not to be displayed in the URL address bar. In other words, I want to hide the full URL of these subdirectories in the browser.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Becky754

1 Comments

Sorted by latest first Latest Oldest Best

 

@Moriarity557

Found the solution with external help. This is what I was looking for with mod_proxy enabled in httpd configuration:

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

RewriteRule ^$ /vip/alice [NC,P]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme