• xeef

    (@xeef)


    currently i have no www in front of my domain
    if i type the domain whit www i am redirected to
    the no www version how can i change that ?

    ———————————————–

    what i ultimately would like to have is having a ruing mysite.com
    and simultaneously http://www.mysite.com on a different server
    i am using amazon aws so i can make a copy of mysite.com whit the press of a
    button
    but mysite.com needs to stay alive and i dont want to use hours to change
    the database and the wordpress settings in the copy to get it to work as http://www.mysite.com i mean the domain stays basically the same i dont move it to mytestserver.com is there some easy way to do that
    i was trying some htaccess settings but it doesnt work i get redirected for ever

Viewing 2 replies - 1 through 2 (of 2 total)
  • Clarion Technologies

    (@clarionwpdeveloper)

    Hello xeef,

    You are get redirected to “http://mysite.com ” because in database the siteurl and home is “http://mysite.com ” So you need to change those in database and add like “http://www.mysite.com ” Please follow the below link this will guide you in changing this.

    https://codex.ww.wp.xz.cn/Changing_The_Site_URL

    Thanks

    Thread Starter xeef

    (@xeef)

    was to late in the morning and my brain wasnt working properly

    in case some one is interested

    aws amazon

    have 2 identical instances running (or what ever kind you want)
    you need 2 elastic ip s

    dns setting in dns server:

    mysite.com A 1.2.3.4
    http://www.mysite.com A 10.20.30.40

    log in to wordpress on mysite.com
    wordpress->settings->general
    WordPress Address (URL) and Site Address (URL) change mysite.com
    to http://www.mysite.com
    nothing will work after that and chrome for example cashing the site in some way so even after closing it or chrome it self it wont work
    you need to erase chromes cache or you will get redirecting errors even after you done the next step
    go to ec2 console
    assign the ip mysite.com is on to http://www.mysite.com
    assign the ip http://www.mysite.com was on to mysite.com

    job done

    not sure if all works as i expect for some strange reason 1
    image set in the theme itself has reverted to its original
    state on 1 of the instances ?!
    but anything else seams fine

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘switching between www.site.com and site.com settup’ is closed to new replies.