on air

301 Redirect Request.

back home » Scripting Tutorials » .htaccess » 301 Redirect Request.


Creating A 301 Redirection. [.htaccess]

Before renaming or moving an older file, a directory or even your entire website, you'll have to redirect to the new location using the .htaccess file. Users will not feel the changes made here, and all will be OK.

First of all you'll create a .htaccess file, copy and paste the relevant script below into it. Edit it appropriately to, and from your desire locations, making sure they are all on the same line.

Save and upload it as ASCII file to your server using FTP,

The .htaccess file should be placed in the same directory as the directory you wish to redirect.

Redirecting A Single File To A New Path.

The script below will redirect an old file to a new file path. Let me simplify it to an easy understanding as follows.

You have here three parts of a command on the same line which is separated with spaces.

  1. Redirect is the main command followed by a space.
  2. /olddirectory/oldfile.html is the directory and the file you'll like to redirect followed by a space.
  3. And at last http://yoursite.com/newdirectory/newfile.html is the destination you'll like to rediredct to. Easy!

See illustration below.

Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/
newfile.html

Redirecting An Entire Website.

Redirecting an entire website will be slightly different from redirecting a single file.

This will point your entire website to a different URL, such as youroldsite.com redirected to yournewsite.me

  1. Redirect is the main command followed by a space.
  2. 301 represents the entire site that should be redirected, followed by a space, forward slash, and a space again.
  3. http://yournewsite.me is the new site that the old site should be redirected to, followed by a forward slash.

See illustration below.

Redirect 301 / http://yournewsite.me/

Using these methods you can just flex. And redirect a single file, a directory, or your entire website easily.

Mutt Cutts | Changing Your Domain Name.

Clicks4UrMind

Man will give you worldly powers, and make you feel on top of all, note this is temporally and could be redrawn at anytime sending you back to the ground floor of life. However, the Lord Almighty, the one and the only rightful ruler of the Universe, blesses everlastingly.

Brain

Knowledge is Power, but Power is not Knowledge. Wisdom is the truthful Power that identifies the Knowledge within the man. And only, I repeat 3x. Only the almighty God has the power to bless the man with his Wisdom forever.

To achieve the Lord's blessings, cease not praying daily, asking for his Wisdom, and you'll be blessed abundantly...

SPYERA PHONE

Spyera Phone

Spyera Phone version is software that you install on a smart phone to monitor everything happening on the phone. After installation, SPYERA secretly records events (sms, call history, phone book, location, emails, What's App messages, IM, Facebook Chat, Skype, See photos taken and many more...) that happen on the phone and delivers these information to a web account, where you can view these reports 24/7 from any Internet enabled computer or mobile phone. SPYERA also allows you to listen to the surroundings of the target mobile , listen to the phone conversation and to know the location of the device.

 

Please, Kindly Donate What You Can, Enabling Us Pay Hosting And Domain Costing, And Do More.

Please Donate