Setting up local version of site - base url

Permalink
Hi guys,

I am sure it was covered somewhere in the forum but can't find the answer. I got a remote Concrete5 site 5.7.5.3. All I want to do is to setup a local version of the same site using MAMP Pro / domainname.localtest.me

Site is all setup, database connected and it's re-directing to the original base domain. I found talk about changing BASE_URL in config/sites.php - this does not exist in this Concrete 5 version.

So what do I do? Can I apply some .htaccess rules?

cheers

 
JohntheFish replied on at Permalink Reply
JohntheFish
There is a config variable for the canonical URL somewhere beneath /application/config in one of the auto generated config files you are not supposed to touch.
sammler replied on at Permalink Reply
Thanks John. I give it a crack.
hutman replied on at Permalink Best Answer Reply
hutman
Couple things you can do.

1) Delete everything in /application/files/cache
2) Check you .htaccess and make sure it matches below
3) Check your /application/config/generated_overrides/concrete.php and make sure that your remote url isn't in that file

.htacess
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
sammler replied on at Permalink Reply
Hutman,
Thanks. 1 + 2 are checked. 3 is the untouchable file (see John).
OK I guess that's all pointing to that file.
cheer guys
sammler replied on at Permalink Reply
Just confirming 3) solved it. Thanks!
Elstud replied on at Permalink Reply
Elstud
Hi
I have the same problem ..
I am working with a specific URL and now, the website is finish but I don't know how I can give a new URL..
Il follow few step and .. not found .. I don't meet this problem before.
Would you confirm steps, perhaps with screenshoot if possible ..

Thank you
Elstud replied on at Permalink Reply
Elstud
Hi,
I found the solution,
Well, I meet this problem before but I forget it ..

Then, you are working with dev url.
Just after install, you don't have .htaccess
Then you go in dashboard and you choose "delete index.php"
Now .htacsess is generate
If you give the url production now you have the home page but nothing else. Pages and backoffice is no found.
Infact the website is in subfolder on my server.
I can see in .htaccess :

<code>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /monsite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]

</IfModule>
</code>

When I write this (delete monsite/ ) it's ok, the website is ok with the good url :

<code>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]

</IfModule>
</code>

Hope it can help.