Support » Fixing WordPress » Changing the default path

  • Hey guys, Pretty easy question i think for most of you wp buffs out there:) at the moment my word press is on domain.net/wordpress but i would like to change it to domain.net/blog this will cause problems wont it? or it will be a task to do?

    thanks in advance

Viewing 10 replies - 1 through 10 (of 10 total)
  • nah – shouldn’t be a problem

    Just rename the folder and update the wordpress options page.

    What will happen though is you’ll be penalized by the search engines who will keep on searching for your stuff in the old directories. You’ll have 404 errors out the whazoo unless you tell the search engines how to handle the change.

    You do that by adding something like this to the .htaccess file:
    RewriteEngine On

    RewriteRule ^olddir/(.*)$ http://new.com/newdir/$1 [R=301,L]

    That will send a 301 error to the search engines telling them that the file has been moved. That will make your transition go a lot more smoothly.

    Hope that helps!
    __________________________________________
    Brian Layman
    http://www.TheCodeCave.com

    Just rename the folder and update the wordpress options page.

    Yeah, but..if me remembers right..it’s the other way around though.. hehe. =) Cause if ya re-named the folder first, and then went to update the page, it won’t work..right?

    I usually change my URL paths in the options page first.. then go up into the FTP directory.. and rename folder.. Isn’t this right? (If I’m wrong, I’ll paddle myself.. =P )

    spencerp

    thanks guys for your help im going to give it a try *fingers crossed for me*

    i just want to make sure tho Brian if my site is aimzter.net/wordpress currently and i change it to aimzter.net/blog what exactly do i hav eto put in the htaccess. can you put it so i can copy paste? thank you so much

    lol – well I suppose if you want to be all profound and logical about it, you should access the blog while it still exists and is like functional and all that… Yeah.

    Good catch!

    ______________________________________________
    Brian Layman
    http://www.TheCodeCave.com

    Lmao..You’re still *awesome* though Brian. 😉 =)

    spencerp

    Aimzter, no problem.

    If you have a typical WordPress .htacess file, it will end up with a section looking like this:
    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^wordpress/(.*)$ blog/$1 [R=301,L]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Easy Peasy!
    ______________________________________________
    Brian Layman
    http://www.TheCodeCave.com

    Thanks Spence! You do a pretty bangup job around here yourself! (Though I can only picture you looking like the Spencer in “Ed vs. Spencer”)
    ______________________________________________
    Brian Layman
    http://www.TheCodeCave.com

    (Though I can only picture you looking like the Spencer in “Ed vs. Spencer”)

    Hahaha..lmao! Nah..I don’t think so haha. 😉 =P =) Well, I have a picture of myself on my About page..so..I don’t personally think so anyway.. but, it’s hard to tell. =P

    spencerp

    i feel really stupid.

    does it go in my main htaccess file at the root of my domain or should i have a wordpress one also? if so where do i locate it lol

    thanks for your help today

    It’s the .htaccess file, for the WordPress directory.. where ever your WordPress files are at, whatever folder.. it goes there..

    Example
    domain.com/wordpress/
    .htaccess
    index.php
    wp-config.php
    all other WP files for that directory..

    spencerp

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Changing the default path’ is closed to new replies.