1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

small .htaccess roadblock, help me out

Discussion in 'Blogging' started by jaerehan, Sep 27, 2010.

Thread Status:
Not open for further replies.
  1. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Here is the situation: i transferred a wp site to be on an addon domain (completly different one) on an other host. Everything fine, except the links redirects back to the main domain of the host.

    ie:

    addondomain.com is the domain that not working properly.
    addondomain.com index is fine, but if any link (it shows addondomain.com/post1/) clicked it goes to maindomain.com.

    I searched around, but couldnt find the right .htaccess codepart to solve this error. Anyone could share the solution?

    Thnx
     
  2. Superpower

    Superpower Regular Member

    Joined:
    Mar 27, 2010
    Messages:
    313
    Likes Received:
    31
    Location:
    Just Ahead Of Every Expert
    just change the path in the code inside .htaccess file to the new one.
     
  3. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    That was the first i tryied and still bugging out.

    i changed to the directory that has the addon domain's wp install, ie:

    /addondomaindirectory/index.php

    or how should i ?
     
  4. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    did you refresh your permlink settings after the move?
     
  5. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    nope, i want them to be the same, just on the new domainname.
     
  6. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    Yes but did you save them again once you had the transfer to the new host. Saving them again should rewrite them to the .htaccess
     
  7. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    I see, yeah, i did, the links on the site are displays correctly, but when i saved the permalinks, it wrote me to save a code part to the web.config file. I did that also, nothing changed, same redirect to "maindomain.com".
     
  8. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    oh are you on a windows server?
     
  9. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    i guess yes, its not my hosting lol.
     
  10. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    ah the .htaccess will not work on a windows server.

    check with your host that they have URL Rewrite module enabled on the server. Though it sounds as if it is if your urls are displaying correctly. what seems to be wrong is your getting a redirect from new site to old rather than the other way around. Sorry have no experience with windows servers. Your host should be able to help with the correct rewrite rule.

    try deleting the .htaccess altogether
     
    • Thanks Thanks x 1
  11. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Ok so the f*cking windows host is the problem, not the .htaccess :) I already wrote to them the problem, the support will fix it then. Thanks!
     
  12. Superpower

    Superpower Regular Member

    Joined:
    Mar 27, 2010
    Messages:
    313
    Likes Received:
    31
    Location:
    Just Ahead Of Every Expert
    did u get the problem solved???
     
  13. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    yeah, thanks
     
Thread Status:
Not open for further replies.