redirecting concrete5 index to default of the website
Permalink
Hi
I recently instoled C5 on the hosting server (JustHost) where I still have my old static website. I redesigned the website with C5 onwww.www.myweb.com/concrete/index.php... and so on. I was wonder how to make it now my default page for the website.
my site.php includes:
define('BASE_URL', 'http://www.mysite.com');
define('DIR_REL', '/concrete');
and htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /concrete/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
when I change the name of the old website index I got list of the list of the server files when typinghttp://www.mysite.com insted C5 page.
I will appreciate any help
I recently instoled C5 on the hosting server (JustHost) where I still have my old static website. I redesigned the website with C5 onwww.www.myweb.com/concrete/index.php... and so on. I was wonder how to make it now my default page for the website.
my site.php includes:
define('BASE_URL', 'http://www.mysite.com');
define('DIR_REL', '/concrete');
and htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /concrete/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
when I change the name of the old website index I got list of the list of the server files when typinghttp://www.mysite.com insted C5 page.
I will appreciate any help
Hi John
this is the path to the concrete5 instalation - /public_html/concrete.
I tried to change DIR_REL as you advised but I got error.
What would you do next?
Thanks
this is the path to the concrete5 instalation - /public_html/concrete.
I tried to change DIR_REL as you advised but I got error.
What would you do next?
Thanks
I am still a little confused about your site paths.
Could you post a list or tree of everything below /public_html/
Could you post a list or tree of everything below /public_html/
Hi John
here you gohttp://www.reconstructprojects.com/images/root.jpg...
this is the screenshot of the public_html directory. I couldn't attach the image for some strange reason.
here you gohttp://www.reconstructprojects.com/images/root.jpg...
this is the screenshot of the public_html directory. I couldn't attach the image for some strange reason.
An experiment, so no guarantee, try this change to .htaccess
Also, see if you can get to your site with:
http://www.yoursite.com/concrete/
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /concrete/index.php/$1 [L]
Also, see if you can get to your site with:
http://www.yoursite.com/concrete/
Just had another thought. Is your .htaccess in the root directory, or in the concrete directory?
Maybe another way to think about it. If concrete5 is now your default website, is there a reason you can't put the concrete5 installation at the root, and move you old site to /public_html/old_site/ ?
Did you know that in concrete5 under "Page Properties" of a page you can go to the "Page Paths and Locations" and include a path from your original site that will now be redirected to the specified concrete5 page? That way you can preserve any links in the wild but have them now go to your new site in the most relevant location. Then you can retire the old site and move on.
Did you know that in concrete5 under "Page Properties" of a page you can go to the "Page Paths and Locations" and include a path from your original site that will now be redirected to the specified concrete5 page? That way you can preserve any links in the wild but have them now go to your new site in the most relevant location. Then you can retire the old site and move on.
Hi guys!
Thanks for respond. I tried John to change .htaccess but it errors me. Yes I can get to the c5 website usinghttp://www.mysite.com/concrete/.... I would like to loose the /concrete/. And about .htaccess it seems that wherever I update .htaccess it change both root and concrete file.
Yes moving to the root would solve the problem. Maybe I shold look for redirection of the website on my server.
Yes I know mkly about Pages Properties but what I can change or add is after concrete -http://www.reconstructprojects.com/concrete/???....
Thanks for respond. I tried John to change .htaccess but it errors me. Yes I can get to the c5 website usinghttp://www.mysite.com/concrete/.... I would like to loose the /concrete/. And about .htaccess it seems that wherever I update .htaccess it change both root and concrete file.
Yes moving to the root would solve the problem. Maybe I shold look for redirection of the website on my server.
Yes I know mkly about Pages Properties but what I can change or add is after concrete -http://www.reconstructprojects.com/concrete/???....
Does your host provide a panel mapping domnain names to folders?
You could try pointing the domain name directly at public_html/concrete/ and then RewreiteBase would be '/' and DIR_REL would be '/'
(Note to anyone coming in to this later, this is not the same directory /concrete/ as the core files, so please don't do this to any site that does not have the same structure as Rajczakowsky)
You could try pointing the domain name directly at public_html/concrete/ and then RewreiteBase would be '/' and DIR_REL would be '/'
(Note to anyone coming in to this later, this is not the same directory /concrete/ as the core files, so please don't do this to any site that does not have the same structure as Rajczakowsky)
Hi guys
I have got in touch with my host provider (justhost) and they advise me to move c5 to root. So I did (http://www.reconstructprojects.com). It is all working fine. I would prefer to keep whole c5 instalation in one seperate folder but what can you do.
Thanks for your help guys
I have got in touch with my host provider (justhost) and they advise me to move c5 to root. So I did (http://www.reconstructprojects.com). It is all working fine. I would prefer to keep whole c5 instalation in one seperate folder but what can you do.
Thanks for your help guys
Maybe DIR_REL should be '/' ?
(I have a few other thoughts, but it seemed worth checking this before going further)