How to redirect your old domain to your new domain using .htaccess

if you want to make a test you should probably use 302 (temporary) n stead of 301, once you are comfortable that this is what you want make it permanent using 301

The  .htaccess instructions to add in the OLD site are the following:

Option 1:

<IfModule mod_rewrite.c>
  RewriteEngine On
  #this will redirect all your links to the root of your new domain 
  RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www.olddomain.com$
  RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>

Example:

http://francesco-lelli.users.sourceforge.net/technicality/2014/07/solve-media-plug-in-in-wordpress-and-php-editing/

Will redirect to:

 http://technicality.host-for.me

If you tried you will noticed that it does not work! The reason is that i chose Option 2:

<IfModule mod_rewrite.c>
  RewriteEngine On
  #this will redirect all your links to the same links in your new domain

Redirect 301 / http://technicality.host-for.me

Example:

http://francesco-lelli.users.sourceforge.net/technicality/2014/07/solve-media-plug-in-in-wordpress-and-php-editing/

will redirect to:

http://technicality.host-for.me/2014/07/solve-media-plug-in-in-wordpress-and-php-editing/

 

 

Theme for external RSS and twitter integration

This look like an interesting theme for WordPress if you look for side-way websites.

It should gives the possibility to integrate and mesh external data sources, I will investigate more in the coming days.

According to the author it should help in spreading your content over the web.

Screen Shot 2014-08-06 at 15.04.35

Introducing my new website and Hosting Provider

technicality

Thanks for stopping by and welcome to my new blog! This is just an introductory post so I’ll keep it short and sweet.

I decided to change blog hosting because the amount of spam was unmanageable. Do you want to know that is the meaning of “unmanageable”, check this out:

Screen Shot 2014-08-06 at 15.04.35

Did i make my point? :-)

Over the next few months I plan to be writing and sharing posts about quick solutions to everyday technical problems

That’s it for now! If you’d like to be kept updated with my posts “Like” this post or subscribe to my blog.

Follow me on App.net

The difference is in the details