• Resolved athriftymom

    (@athriftymom)


    I just purchased another pre-existing domain with content.. I just finished the domain transfer and nameserver redirection. The site is working normally now except for a single post redirection issue..on my new site: myfreebiesanddeals.com, when you click on a post title, instead of the post pulling up.. it redirects to athriftymom.com (one of my other sites on my server)

    so if you want

    http://myfreebiesanddeals.com/emergen-c-free-sample/

    it tryies to redirect to:

    http://athriftymom.com/emergen-c-free-sample/

    and comes up with an error saying not found.. well no duh, cause the post was written in myfreebesand deals…

    i messaged my server guys and this is what they said:
    —————————–
    Looks like what we’ve ran into is that the redirect at the top of the .htaccess file for myfreebiesanddeals.com is redirecting all post clicks toathriftymom.com. Since the posts don’t exist on athriftymom.com, this explains the Page Not Found errors.

    Currently, commenting out the redirect doesn’t affect the redirect rule, so I’m looking for a different solution to get the posts to load.
    ————————————-
    then next email:
    ————————————–
    From looking over this issue and coordinating with one of my colleagues, this looks to be an issue in the WordPress back end. Since the 301 redirect in the .htaccess file for myfreebiesanddeals.com has no bearing as to whether or not page requests are redirected, I would advise you to contact WordPress support regarding this issue.

    ————————————————–
    ANY idea on how to fix this redirect?

Viewing 9 replies - 1 through 9 (of 9 total)
  • No great expert here, and hard to beleive I’d know anything your host doesn’t about this, but from what I know, htaccess is written when you set permalinks. Have you tried resetting them for both sites? This issue seems odd, if each site has it’s own directory, own htacess, I cant see why this would happen.

    Thread Starter athriftymom

    (@athriftymom)

    Deepbevel – how do i reset permalinks?

    you are right.. each domain has a separate database/directory
    when we first transfer the site.. there was an error in the htaccess file supposedly and a guy i know said he fixed it.. but i have no clue what he did ..but it at least started showing the site.. but that was in the beginning..

    Also still wondering if anyone else has any ideas?

    permalinks are under settings, in admin. Just change it from default to something else. I think you can change it back after without issues.

    Thread Starter athriftymom

    (@athriftymom)

    Deepbevel.. nope didnt work..
    What is the htacess file supposed to contain… my tech guy said that is the issue

    sorry, I’m not even sure myself. My server was hacked several weeks ago, my htaccess file was causing my domain links to point to malware sites. As part of the clean up I deleted it. When I reset permalinks it was recreated.

    mine looks like this:

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

    TravelBlog5 is the name of my site folder.

    Be aware that you also may have an htaccess file in your public_html folder of your server. In my case, that one is blank.

    Thread Starter athriftymom

    (@athriftymom)

    thanks.. for the tips.. the guy who set up y htaccess set it up pointing to my original database of the main site… not the new site.. so i switched the database name and ta-da.. it works..

    odd that it didn’t reset when you reset permalinks?.. oh well, glad you solved.

    Hey, not sure if this is solved, but I found this post that helped me. I had to struggle for the longest time trying to get all the posts within my old blog to the new domain name.

    At first, only the main domain worked, then I inserted this code at the top below the rewrite engine, and it worked. It redirects all my posts as well.

    RewriteEngine on
    RewriteRule ^(.*)$ http://yourcodegarage.com/blog/$1 [R=301,L]

    Reference: http://codegarage.com/blog/2011/03/how-to-301-redirect-your-wordpress-blog-to-a-new-url/

    thanks, I’m moving a site soon so that could be useful.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Post redirect from one site to another on same server’ is closed to new replies.