WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] This is just so frustrating...google verification and 2 websites? (11 posts)

  1. mbmusgrove
    Member
    Posted 3 years ago #

    OK- problems everywhere due to my ignorance(whoever said a little knowledge is a dangerous thing wasn't kidding):

    I set up my website (www.michaelmusgrove.com) last night and installed WordPress, but added the extension /blog, not really thinking or knowing what I was doing. I then added the tracking code for google analytics to that, so that is what my google analytics account is tracking under my main Google/gmail account. Decided I screwed up and want JUST http://www.michaelmusgrove.com without the /blog extension (even though I added some fairly well-written content and imported 30+ posts from Blogger that I wouldn't mind recovering, but it's not that big of a deal-I have bigger fish to fry at this point).

    So, I installed WordPress for my main domain and move on. Problems are of course now cropping up.

    Google analytics is tracking the /blog site, and even though I added the tracking code to the pages of my main domain, I'm not sure what in the world is being tracked now.

    I can't verify my main domain, through Google analytics (since it's tracking the /blog site) and when I add the meta tag to the header of my main site now, I can't verify it either. THAT is annoying.

    I don't want to just Nuke everything at this point because of the time invested but I am pulling my hair out. I also would rather not start setting up all sorts of duplicate accounts, but I don't know what the solution is.

    Anyone have any solutions for an idiot?

    When I search google for my site (site: http://www.michaelmusgrove.com) all that comes up in google search results is the /blog site extension, but all THAT is, is an Index of /blog. That, of course, is NOT what I want to pull up (I just want may main domain) and am not even sure how to access the /blog site anymore.

    I am so confused.

  2. Joseph
    Member
    Posted 3 years ago #

    You edit the site URL in Google Analytics. There's a edit button to the right of the table in https://www.google.com/analytics/settings/

    I believe Google Analytics only track statistics. To help google index your pages you'll need to:
    1. Create a sitemap with the Google XML Sitemaps plugin.
    2. Use Google Webmaster Tools.

    Since Google has already indexed http://www.michaelmusgrove.com/blog/, you should redirect that to your home page with .htaccess.

    Find your .htaccess in your root folder and add the following at the beginning:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    Redirect 301 /blog/ http://www.michaelmusgrove.com/
    </IfModule>
  3. mbmusgrove
    Member
    Posted 3 years ago #

    You, Joseph, are awesome. One more dumb question as I try to untangle my mess, as I'm getting tired of assuming things incorrectly.

    Where exactly am I looking for my .htaccess in my root folder, and am I adding the 301 redirect at the VERY beginning? I went to the index.php page--is that where I'm sticking that code? Or is it n the Header.php page, beneath <title>? Or am I not even close? I'm sure you (or anyone reading this) are rolling your eyes, but I can't take much more trial and error learning tonight. It 's been mostly error.

    Thanks SO much for your quick and VERY helpful response!!

    Michael

  4. Joseph
    Member
    Posted 3 years ago #

    There should be a file named .htaccess at the root folder, likely named public_html, and should look something like the following inside:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Now, paste the following block of code before that and on a newline

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    Redirect 301 /blog/ http://michaelmusgrove.com/
    </IfModule>
  5. mbmusgrove
    Member
    Posted 3 years ago #

    Sheesh, I'm dumb. I don't see anything like that anywhere. I only have 5 pages on my site and have looked at the code for each and see nothing that resembles:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    The index.php (which I thought was my root folder) looks like this:

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]

    But I'm thinking neither of these is what I'm looking for and don't know where else to realistically look. I obviously know nothing about this. I don't know how to access the http://www.michaelmusgrove.com/blog page anymore (The parent directory just takes me to http://www.michaelmusgrove.com, where it isn't listed as a page any longer.

    I searched for .htaccess within the source code and nothing appeared. I looked online for answers out of embarassment but also found nothing of help to my specific dilemma, but nada. It is getting late/early where I am so maybe I missed it but I don't think so.

    I'm sorry to be so obtuse, but can you be any more specific?

    Thanks a million,
    Michael

  6. Joseph
    Member
    Posted 3 years ago #

    Sorry, I should have been more explicit. It's on your server's root folder, public_html. It's definitely there since you're using pretty permalinks.

  7. mbmusgrove
    Member
    Posted 3 years ago #

    No worries at all; I suppose I didn't explain how ignorant and tired I am, because I cannot figure out how to even access the public_html folder on my server.

    By the way, everything else is up and running--Thanks!!

    I'm going to have to go to bed now and try again in a few hours.
    Thank you for your help Joseph!

  8. Joseph
    Member
    Posted 3 years ago #

    You can access it through File Manager in cPanel on your webhost.

    Edit: If you can't find it then don't worry about it. It's only one page so it's pretty trivil. Just let Google sort it out by itself.

  9. mbmusgrove
    Member
    Posted 3 years ago #

    Joseph-

    Thank you SO much for your help with this. You (patiently) solved my most stressful problems and taught me some valuable things as well, which is why I set this website up in the first place(to learn).

    Thanks again!

    Michael

  10. Joseph
    Member
    Posted 3 years ago #

    You're welcome. Happy to help.

    BTW, can you please put this as resolved? From the little sidebar to the right at the top of the page.

    I respond to quite a lot of questions and it helps me organise.

    Thanks.

  11. Oscar23
    Member
    Posted 3 years ago #

    Joseph,
    I would like to ask you how to get my website back. I added meta info to my site I believe in the header section. This was to verify through google I owned the wordpress blog. I thought (what comes next is my problem) I did it correct but now I try to type in the URL to my site http://www.tampabayappraisers.com and nothing comes up. Can you help please!?

    Best regards,

    Jonathan

Topic Closed

This topic has been closed to new replies.

About this Topic