Redirecting my websites blog

Users who are viewing this thread

  • 5
    Replies
  • 344
    Views
  • 0
    Participant count
    Participants list

Siphorous

Anticipation
Messages
7,001
Reaction score
17
Tokenz
199.13z
Have an index html file that contains a meta tag to change the location.

That's one way. There's others too of course.
 

Tim

Having way too much fun
Valued Contributor
Messages
13,518
Reaction score
43
Tokenz
111.12z
Don't redirect!

Leave your wordpress in the blog folder and make these simple changes so that wordpress will power the site's root directory.
This will allow you to keep all the wordpress files in the blog folder while not needing to have /blog in the address bar. But a redirect is the wrong way to approach this solution.

Here are the directions
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
 

Dana

In Memoriam - RIP
Messages
42,904
Reaction score
10
Tokenz
0.69z
Those directions are confusing... I totally messed up my blog :( My FTP won't let me copy stuff.
 

Tim

Having way too much fun
Valued Contributor
Messages
13,518
Reaction score
43
Tokenz
111.12z
Read through the instructions a couple of times, it might be a little confusing, but it's not that hard.

Next, download and use fireftp as your ftp client. It's the absolute easiest ftp client out there. It's a firefox add-on.

With FireFTP, you can move files back and forth as easy as using windows explorer.

https://addons.mozilla.org/en-US/firefox/addon/fireftp/
 

Tim

Having way too much fun
Valued Contributor
Messages
13,518
Reaction score
43
Tokenz
111.12z
The process to move WordPress into its own directory is as follows:


1. Create the new location for the core WordPress files to be stored (we will use /wordpress in our examples). (On linux, use mkdir wordpress from your www directory. You'll probably want to use "chown apache:apache" on the wordpress directory you created.)
Your files are already in this location, so do nothing here

2. Go to the General panel.

3. In the box for WordPress address (URL): change the address to the new location of your main WordPress core files. http://designs-by-d.net/blog

4. In the box for Site address (URL): change the address to the root directory's URL. http://designs-by-d.net

5. Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)

6. Move your WordPress core files to the new location (WordPress address).
There is nothing to move, the files are already in the blog folder

7. Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address). The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you'll have a web.config rather than a .htaccess file in your WordPress directory. As stated above, copy (don't move) the index.php file to your root directory, but MOVE (DON'T COPY) the web.config file to your root directory.

8. Open your root directory's index.php file in a text editor
Download and use NotePad ++ (http://notepad-plus-plus.org/ if you use WordPad or NotePad I can't remember which one, it will change the formatting of the PHP file and it won't work correctly

9. Change the following and save the file. Change the line that says:
require('./wp-blog-header.php');
to the following, using your directory name for the WordPress core files:
require('./blog/wp-blog-header.php');

10. Login to the new location. It will be http://designs-by-d.net/blog/wp-admin/

11. If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)
You should need to do anything with Permalinks
 
Last edited by a moderator:
80,555Threads
2,194,876Messages
5,015Members
Back
Top