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 1and1.com

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

Propagation Times

Propagation is the process of updating a domain with new nameserver (DNS) information across all...

Updating DNS at StarGate.com

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

PHP and HTML redirects

If you do not wish to use the .htaccess file to redirect your visitors, you can use another...

e-dimensionz Nameservers (NS)

Please change your nameservers to the correct e-dimensionz nameservers. Nameserver 1:...