WordPress.org

Ready to get started?Download WordPress

Forums

Redirect not SEO Friendly, need help (35 posts)

  1. keesh
    Member
    Posted 6 years ago #

    According to this checker, thefullpint.com 's redirect is not SEO friendly.
    http://www.webconfs.com/redirect-check.php

    The redirect is in the root of my site, in index.html, and looks like this...

    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= http://thefullpint.com/main" /></head><body></body></html>

    With that in mind, which method do I use for redirect. This website has a PHP method and a .htaccess method.

    http://www.webconfs.com/how-to-redirect-a-webpage.php

  2. moshu
    Member
    Posted 6 years ago #

    Why do you need a redirect in the first place?

    (and just for the record: I don't see anything WP related in your question!)

  3. Ivovic
    Member
    Posted 6 years ago #

    either choice is fine... but the php one is less prone to user error :)

  4. keesh
    Member
    Posted 6 years ago #

    Ok, to answer moshu, I have my entire wordpress page in a directory called /main. I am not being indexed in Google correctly. This SEO redirect checker is telling me the redirect is not friendly. I am running wordpress in my /main folder.

    Ivovic, do I have to put that PHP snippet in my index.html or index.php?

    Please pardon me for any incorrect terminology, or lack of overall web server/SEO knowledge. That is precisely why I am seeking help.

  5. moshu
    Member
    Posted 6 years ago #

    OK, if you use a redirect - it means you don't have anything in your root directory (http://thefullpint.com/). Right?

    In that case why not apply this technique, instead of redirects which are not liked by search engines (except if it is a 301=permanent redirect)?
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  6. Ivovic
    Member
    Posted 6 years ago #

    it should be named index.php... and ensure that there are no lines before the php code there.

    Also ensure that you REMOVE your existing index.html, as that is often loaded at higher priority than an index.php in the same spot, so having both could mean your index.php never triggers.

  7. Ivovic
    Member
    Posted 6 years ago #

    btw, what moshu posted is a great option, unless you're just doing this for a short time while you make the rest of your site. If there's nothing else ever going in the root, then do it right, and make your domain reflect that there's nothing there but your blog.

    moshu is a rock star.

  8. keesh
    Member
    Posted 6 years ago #

    Moshu,
    I am deathly scared of that method, but it seems like the best option.
    I do not have anything in my root directory.

  9. keesh
    Member
    Posted 6 years ago #

    Would backing up everything from my webserver be a good idea. In my mind, if something goes terribly wrong, I could place everything back the way it was?

  10. Jeremy Clark
    Moderator
    Posted 6 years ago #

  11. moshu
    Member
    Posted 6 years ago #

    Backing up the database, (since eveything is stored there!) is always a good idea.
    Although I have been done this kind of "move" many times - if you follow the instructions it should be a smooth process.

  12. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Tied that time :)

  13. keesh
    Member
    Posted 6 years ago #

    After lunch, PST, I will give it a whirl. I just don't want my site being down for long if at all.

  14. moshu
    Member
    Posted 6 years ago #

    It should be only a few minutues...

  15. keesh
    Member
    Posted 6 years ago #

    I appreciate the help...don't go too far away.

    I'm backing up the entire /main directory.

  16. moshu
    Member
    Posted 6 years ago #

    No real need for that - nothing will ever happen to your files! The WP files (except customized themes which you have anyway on your machine) are always replaceable. No content is in files ever. Everything is in the database - as I said above.

  17. keesh
    Member
    Posted 6 years ago #

    Ok ok...I'm gonna go for the plunge.

  18. keesh
    Member
    Posted 6 years ago #

    Alright, it worked, except killing my logo banner. How do I fix that one?

  19. moshu
    Member
    Posted 6 years ago #

    Because it is NOT where it's supposed to be!
    This:
    <img src="img/logo.gif" is a bad way to use relative path: without a leading slash it will ALWAYS calculate the path from the page you are on... e.g.
    example.com/subfolder/subfolder/subfolder/img/logo.gif

  20. Jeremy Clark
    Moderator
    Posted 6 years ago #

    In your header.php file look for this
    <img width="800" height="68" border="0" src="img/logo.gif"/>
    Change to this
    <img width="800" height="68" border="0" src="/main/img/logo.gif"/>

  21. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Tied again :)

  22. keesh
    Member
    Posted 6 years ago #

    Wooo hooo.

    Moshu..I'm looking your way...

    Can I change the permalink structure?

  23. moshu
    Member
    Posted 6 years ago #

    OK, I am glad you made it :)

    From now on you can administer your site as if it was a "normal" setup, don't worry about it. You can do whatever is possible and permitted on your server.
    E.g. for permalinks you need mod_rewrite enabled on an Apache server.
    Also, don't forget the tutorial: you need the .htaccess file both in the root and in your WP subfolder!

  24. keesh
    Member
    Posted 6 years ago #

    Cool.

    With godaddy, will I be able to do the apache mod_rewrite?

  25. Jeremy Clark
    Moderator
    Posted 6 years ago #

    If your hosting plan is an apache server, most likely.

  26. keesh
    Member
    Posted 6 years ago #

    ok
    I'll look into that.

  27. Adam Brown
    Member
    Posted 6 years ago #

    godaddy lets you use it, but you have to wait up to an hour after uploading a new htaccess for their server cache to find it. Once it's found it the first time, it will notice changes to the file immediately from then on.

  28. keesh
    Member
    Posted 6 years ago #

    I guess Im a bit of a tard, but I can't where or how to do this said mod_rewrite.

  29. moshu
    Member
    Posted 6 years ago #

    YOU don't do it. It is either set up on the server by your host - or it isn't. Period. No choices there.

    Obviously, according to adam's post above - it is installed on goddaddy, so just read his post... set your permalinks, update the htaccess file(s) and wait patiently :)

  30. keesh
    Member
    Posted 6 years ago #

    K...so I go back to the tutorial, find the snipet to put in my .htaccess...and copy it to my main folder as well?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.