Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Change domain URL


Go to End


5 Posts   2647 Views

Avatar
vlain

Community Member, 3 Posts

12 November 2010 at 6:07am

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?

Avatar
bummzack

Community Member, 904 Posts

12 November 2010 at 6:17am

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

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

Avatar
vlain

Community Member, 3 Posts

12 November 2010 at 6:30am

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.

Avatar
bummzack

Community Member, 904 Posts

12 November 2010 at 7:28am

Maybe you got a redirect in your .htaccess file?

Avatar
vlain

Community Member, 3 Posts

12 November 2010 at 9:56pm

Edited: 12/11/2010 9:57pm

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 ###
#==============================================