When you share the contents publicly and need to provide users with an easy-to-remember URL, you can easily rewrite the actual URL of that contents. The URL can be all changed, except the beginning - the domain name.
In the link such as http://example.com/share/s/JZIb5cfvS8mdMrrL5F3D2g you can change everything that goes after http://example.com/.
You can rewrite actual URLs only if the environment is prepared for that.
To rewrite an actual URL
- Copy the link you are going to share.
Open the default Apache website root directory.
If the Apache HTTP Server installation directory is C:\xampp, then open C:\xampp\htdocs.
- Open the .htaccess file for edit.
Append the file contents with the following line:
RewriteRule ^subsitute_URL$ actual_URL [L]
This RewriteRule command maps the actual URL with the one you manually provide (this only refers to the text after the domain name!).
Replace actual_URL with the link you have copied.
Instead of subsitute_URL, type the part of URL that goes after the domain name, between ^ and $.
Save and close the file.
Let's say you have the following link:
http://example.com/share/s/JZIb5cfvS8mdMrrL5F3D2g
If you want to give users the link such as http://example.com/review_team_1/sysReqs, append the .htaccess file with the following line:
RewriteRule ^review_team_1/sysReqs$ http://example.com/share/s/JZIb5cfvS8mdMrrL5F3D2g [L]