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.

Was this answer helpful?

 Print this Article

Also Read

Updating DNS at NetworkSolutions.com

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

Updating DNS at NameBargain.com

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

Modify Nameservers from Client Area

You can change the nameservers of your registered domain from client area itself. For that, you...

Updating DNS at enom.com

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

Updating DNS at 000domains.com

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