Need to figure out how to redirect domain to my wp blog

Discuss how you are making money. How do we optimize our actions and get the most out of what we are doing online information and action.
Image

Need to figure out how to redirect domain to my wp blog

Postby onnaholl » Sun Nov 15, 2009 4:37 pm

I am trying to figure out how to redirect traffic that comes to my main domain http://www.makingmoneyquick.net to my blog http://www.makingmoneyquick.net/blog. I'd like to have it that if someone types in my main domain, it will automatically redirect to the /blog. I have moved all my content from my main domain to my blog, so there is no need for people to go there separately. I do have a cpanel, and I heard I could somehow do this with my cpanel. Thanks so much for your help!!
Image
Have Children? Need Activities, craft or advice? Come Over To Toddler Craft

Want to make extra money online for free? Making Money Quick Blog
User avatar
onnaholl
 
Posts: 199
Joined: Tue Mar 10, 2009 6:00 am
Location: RI

Re: Need to figure out how to redirect domain to my wp blog

Postby Brad West » Mon Nov 16, 2009 12:06 am

Ok Onna,

Now I have a few more questions before we progress to fixing your problem here.
Are you planning on putting something on your main domain eventually?

There are many ways ti accomplish what you need to But I would like to see the big picture first. I don't know if it would be best to move the site and redirect the blog folder.

This is how you create a 301 redirect.

The best method to preserve your current search engine rankings when redirecting web pages or a web site. The code "301" is interpreted as "moved permanently".

After the code, the URL of the missing or renamed page is noted, followed by a space, then followed by the new
location or file name. You implement the 301 redirect by creating a .htaccess file.

1. To create a .htaccess file, open notepad, name and save the file as .htaccess (there is no extension).

2. If you already have a .htaccess file on your server, download it to your desktop for editing.

3. Place this code in your .htaccess file: redirect 301 "http://old/old.htm" http://www.new.com/new.htm

Code: Select all
Yours should look like this:
redirect 301 "http://www.makingmoneyquick.net" http://www.makingmoneyquick.net/blog

or if we were to move your site from the blog folder to the root folder it would be this:
redirect 301 "http://www.makingmoneyquick.net/blog" http://www.makingmoneyquick.net/


4. If the .htaccess file already has lines of code in it, skip a line, then add the above code.

Upload this .htaccess file to the root folder of your server.

7. Test it by typing in the old address to the page you've changed. You should be immediately taken to the new
location.

This is one way to do it, this .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite module enabled. Let's see if your rewrite mod is turned on.

You can also do this.


This meta refresh can be implemented in the <head> statement of your source code in blank page with the old file name, which then automatically redirects visitors to the new page. Example:
Code: Select all
<HEAD>
<META HTTP-EQUIV="refresh" content="0;URL=http://www.new.com/new.htm">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<TITLE>Page has moved</TITLE>
</HEAD>

This is a technique not recommended by me but it works. often it is used by spammers to trick search engines and it should be avoided, unless the page is in a section of your site that isn't spidered. To me it is basically useless.
User avatar
Brad West
Site Admin
 
Posts: 428
Joined: Fri Oct 10, 2008 11:47 pm
Location: Las Vegas NV.


Return to Marketing Topics

Who is online

Users browsing this forum: No registered users and 0 guests

cron