Having my domain name go to my Concrete5 website
Permalink
Hi,
I built a small site using Concrete5. I now want my domain name to go to the index page in the Concrete5 website. I have tried contacting my web host and support seems unavailable (another issue). I have access through Cpanel. Can anyone tell me how to do this?
Thank you,
Kathy
I built a small site using Concrete5. I now want my domain name to go to the index page in the Concrete5 website. I have tried contacting my web host and support seems unavailable (another issue). I have access through Cpanel. Can anyone tell me how to do this?
Thank you,
Kathy
Sorry. I see this double posted. I just got a spinning wheel and I thought the browser got stuck
This could be anything but most likely there's still a index.html file in your /public_html folder(some sort of placeholder). Try to remove that index.html file and refresh your website.
Oh thank you for the reply.
The .htaccess file had the below code. I deleted the file.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I still get a page index of when I type inhttp://www.my-cedar.com
Is there a way to put in an .htaccess file to direct to the Concrete5 directory?
The .htaccess file had the below code. I deleted the file.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I still get a page index of when I type inhttp://www.my-cedar.com
Is there a way to put in an .htaccess file to direct to the Concrete5 directory?
That code in the .htaccess file creates what's called: pretty URL's. It changes
to
I suggest you should do a 301 redirect, using the .htaccess file, to the c5 folder and than remove the /conc bit.
www.mywebsite.com/index.php/about
to
www.mywebsite.com/about
I suggest you should do a 301 redirect, using the .htaccess file, to the c5 folder and than remove the /conc bit.
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^my-cedar.com$ [OR] RewriteCond %{HTTP_HOST} ^www.my-cedar.com$ RewriteRule (.*)$ http://www.my-cedar.com/conc/$1 [R=301,L] RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/conc/index.php !-f RewriteCond %{REQUEST_FILENAME}/conc/index.php !-f RewriteRule . conc/index.php [L] </IfModule>
Gregyhorse you are AWESOME!
One question - when you say remove the 'conc' bit can you explain? I was going to copy and paste what you wrote into the old .htaccess file and upload via Filezilla.
Thank you!
One question - when you say remove the 'conc' bit can you explain? I was going to copy and paste what you wrote into the old .htaccess file and upload via Filezilla.
Thank you!
Also I noticed through the Cpanel I could do a redirect to another url. Would this be a good way to do that?
With the 'conc' bit I mean the subfolder in which your c5 installation resides. This shows up as a part of the total URL in the URL bar in your browser and could be called a non-pretty URL. With help of the code in .htaccess file /conc can be removed.
Though I am not familiar with redirecting through Cpanel I guess it should be no problem.
Edit: I noticed the above code was faulty, i've adjusted it now.
Though I am not familiar with redirecting through Cpanel I guess it should be no problem.
Edit: I noticed the above code was faulty, i've adjusted it now.
Thank you!
Hi Grayhorse,
I heard back from my webhost. They placed a redirect in the mail folder with this code in the .htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^my\-cedar\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.my\-cedar\.com$
RewriteRule ^/?$ "http\:\/\/my\-cedar\.com\/conc\/" [R=301,L]
So now when someone types inhttp://www.my-cedar.com it automatically goes tohttp://www.my-cedar.com/conc
What I really want is the /conc part to be removed. I asked the webhost and he said I needed to uninstall and reinstall in that directory. While I have not done a ton of work I have done a fair bit and I hate to think of doing this.
BTW I also added 'pretty urls' through the Dashboard settings. I guess I had not done this before. It said it added code into the .htacess file in the /conc directory. This code looks like
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /conc/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
If I added the code you provided before which .htaccess file would I add it to?
I'm so lost here...
Thank you again.
I heard back from my webhost. They placed a redirect in the mail folder with this code in the .htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^my\-cedar\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.my\-cedar\.com$
RewriteRule ^/?$ "http\:\/\/my\-cedar\.com\/conc\/" [R=301,L]
So now when someone types inhttp://www.my-cedar.com it automatically goes tohttp://www.my-cedar.com/conc
What I really want is the /conc part to be removed. I asked the webhost and he said I needed to uninstall and reinstall in that directory. While I have not done a ton of work I have done a fair bit and I hate to think of doing this.
BTW I also added 'pretty urls' through the Dashboard settings. I guess I had not done this before. It said it added code into the .htacess file in the /conc directory. This code looks like
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /conc/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
If I added the code you provided before which .htaccess file would I add it to?
I'm so lost here...
Thank you again.
Got it working!
Thank you so much!
Thank you so much!