There are 3 main types of redirects:

301 – moved permanently; recommended for SEO; indicates to both visitors and search engines that the page has moved permanently; the search engines will carry any link weighting from the original URL to the new page;

302 – moved temporarily; they are not treated as permanent changes, therefore these redirects wont pass the rankings and the search engine value like a 301 does; you should use it only if – for some reasons – you don’t want to transfer the link values from the old page to the new URL

meta refresh; these are redirects executed on page level rather than server level; not recommended for SEO

OK. Now, let’s see the most common methods that can help you to implement a URL redirection using various coding techniques or an .htaccess file.

  • PHP redirect

  • Java (JSP) redirect

  • .htaccess redirect

First of all, let’s clarify what is an .htaccess file! Is the short form for “Hypertext Access” and it’s a web server configuration file used by Apache-based web servers in order to indicate who can or cannot access the contents of a given file directory. It was introduced mainly as a directory-level user authentication method, but over time has become a powerful configuration tool that can be used for many purposes.

This tutorial is not about .htaccess, so I won’t go into details, but you should know, that even the slightest syntax error can have disastrous consequences, so if you are not 101 percent sure about what are you doing, probably isn’t a very good idea playing around with your .htaccess file! And before doing anything else, always read the specific instructions provided by your hosting company! Also, keep in mind, that we are talking about a hidden system file (is hidden with a reason!), so make sure your FTP client is configured to show hidden files.

The .htaccess file can be created and/or edited as a regular TXT file, using a common text editor. It’s a good idea to name it “htaccess.txt” and rename it later – once has been uploaded to your root directory -, because many FTP applications or operating systems are unable to view or read .httaccess files.



Join the Discussion
Write something…
Recent messages
CherylK Premium
I really appreciate the time you took to create this training but it's way over my head! Good to know there's training like this available, though, so thanks.
Reply
smartketeer Premium
Thanks for your time and your feedback Cheryl!
Reply
bluemagic64 Premium
Thanks for the brief information. Can I ask you a favor to look on my website what is wrong. I am still in a huge of learning process. I am not that good as you guys.

Regards,

Nila
Reply
smartketeer Premium
Thanks for your feedback Nila!

About your site ... What do you mean by what is wrong?
Reply
bluemagic64 Premium
The SEO not working. :)
Reply
smartketeer Premium
Well, that's not a "take a look" issue ...

That's a complex process that reqiures a solid ground.

I suggest you to continue with your training and once you've completed OEC, focus on the available SEO training materials.

For example
Reply
bluemagic64 Premium
Thank you Zed.
Reply
smartketeer Premium
You're welcome.
Reply
dowj01 Premium
Very informative, I’ve still got a lot to learn but with the WA training and your lessons I’m getting there!
Thanks
Justin
Reply
smartketeer Premium
Of course you do!

Thanks Justin!
Reply
Waynick Premium
Good stuff - thanks.
Reply
smartketeer Premium
Good comment :)

Thanks Ed!
Reply
bigrog44 Premium
Thanks for sharing, Zed.
Reply
smartketeer Premium
No problem Roger!

Yikes :(
Reply
Top