URL Masking with .htaccess

In case you would like to access a certain URL for your domain name but do not display it in the web browser address bar - here is how you can accomplish it using an .htaccess file.

A sample rewrite rule will look like this:

RewriteEngine On
RewriteRule ^something/?$ /something/else/

This way each time someone accesses:

http://yourdomain.com/something

the actual content that will be displayed will be for:

http://yourdomain.com/something/else

while the URL will remain unchanged.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Updating DNS at ItsYourDomain.com

This demo assumes you have a domain name registered through ItsYourDomain.com, and starts from...

Updating DNS at dotster.com

This demo assumes you have a domain name registered through dotster.com, and starts from the...

Updating DNS at DomainSite.com

This demo assumes you have a domain name registered through DomainSite.com, and starts from the...

Updating DNS at DynaDot.com

This demo assumes you have a domain name registered through DynaDot.com, and starts from the...

How do I set up URL redirect for a domain?

You can redirect the old domain name to your new one by inserting this code to the .htacess file...