Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Change domain URL

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1065 Views
  • vlain
    Avatar
    Community Member
    3 Posts

    Change domain URL Link to this post

    Simple and newbie question, but I can't find any solution. We have a site in a virtual host http://one.yyy.com, we change the nameserver to http://two.yyy.com.
    But all the link inside silverstripe pages points to http://one.yyy.com/...

    What's the problem?
    I check inside all file and inside database for references about old domain and I found only in the table SiteTree_versions.

    What can I do?

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Change domain URL Link to this post

    Did you try flushing the cache?
    Eg. yoursite.tld/dev/build?flush=all

    or by appending ?flush=1 to individual page-urls?

  • vlain
    Avatar
    Community Member
    3 Posts

    Re: Change domain URL Link to this post

    I've try but when I go to a new domain http://two.yyy.com/dev/build?flush=all silverstripe redirect me always on a login page. If I logon I return on http://one.yyy.com/dev/build?flush=all.

    No way.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Change domain URL Link to this post

    Maybe you got a redirect in your .htaccess file?

  • vlain
    Avatar
    Community Member
    3 Posts

    Re: Change domain URL Link to this post

    Standard .htaccess

    #=============================================
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /rd

    RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    </IfModule>
    ### SILVERSTRIPE END ###
    #==============================================

    1065 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.