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


  1. Copy the link you are going to share.
  2. Open the default Apache website root directory.

    If the Apache HTTP Server installation directory is C:\xampp, then open C:\xampp\htdocs.


  3. Open the .htaccess file for edit.
  4. 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!).

  5. Replace actual_URL with the link you have copied.

  6. Instead of subsitute_URL, type the part of URL that goes after the domain name, between ^ and $.

  7. 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]