redirect using .htaccess

1) Temporary Redirect :

Redirect temp / http://www.test.com

This will redirect http://test.com — to — http://www.test.com

Redirect temp /folder http://www.test.com/folder

This will redirect http://test.com/folder — to — http://www.test.com/folder

2) Permanant Redirect :

Redirect permanent / http://www.test.com

This will redirect http://test.com — to — http://www.test.com

Redirect permanent /folder http://www.test.com/folder

This will redirect http://test.com/folder — to — http://www.test.com/folder

  • Email, SSL
  • 0 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Related Articles

After restoring a SQL Server database, it show a status of “Loading”

Getting the database out of LOADING state When restoring multiple backups, each backup needs...

Export the data from different tables in our shared SQL environment?

Using Enterprise Manager Expand SQL Server group Expand the server name Expand Databases...

Create PostgreSQL user account

It is advisable to run PostgreSQL under a separate user account. This user account should only...

Finding what packages are installed on a Linux system

For distributions that use RPM format packages, use the command: $ rpm -qa You may want to...

Fix nameservers not working for Linux servers

If you have your own namerservers or you are using nameservers provided by host, and these...