Is it possible to change install directory (after installation)?

Permalink
Hi,

I installed concrete5 into my public_html/conc/ directory, but now want to eliminate the conc folder from appearing in all my URLs.

(1) I know there's some information out there how to do this using .htaccess, such as

https://www.concrete5.org/documentation/how-tos/developers/hide-the-...

but I'm worried that future updates to concrete5 might break this.

(2) I'm wondering if it's possible to simply place everything in the ~public_html/conc/ folder into the ~public_html folder and be done with it? For example

# mvdir /path/to/public_html/conc/ /path/to/public_html/.

Or, will all heck break loose?

Hoping for feedback whether this can be done, and/or if anything else needs to be changed to make this type of solution work?

 
hutman replied on at Permalink Reply
hutman
Hello,

The process here should take care of you.

http://www.concrete5.org/community/forums/customizing_c5/publishing...
jwapp replied on at Permalink Reply
Just wondering if anyone has succeeded using this procedure in 5.6.x?
JohntheFish replied on at Permalink Reply
JohntheFish
Yes, moving a site between directories or between hosts is pretty much the same.
jwapp replied on at Permalink Reply
I'm having problems with this procedure, using 5.6.3. Most likely it's me. What I did:

1. Login to website as admin.
2. Turned pretty urls off
3. cleared cache
4. moved files from ~public_html/conc/ to ~public_html
5. opened browser, cleared browser cache
6. entered my website url
7. entered login information for admin in concrete5 login page
8. I see the following error:

Not Found
The requested URL /login/do_login/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any idea what went wrong?

UPDATE

I fixed it by adding the following to my .htaccess file in the pubic_html folder:

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

I thought this only was needed when Pretty URLs is enabled, but guess I was wrong.
jwapp replied on at Permalink Reply
Why do some of my pages seemingly randomly show index.php in the URL?

For example,

www.www.mydomain.com/index.php/hello.html...

Manually entering the URL without index.php in it works OK.

www.www.mydomain.com/hello.html...

Anyway to eliminate index.php from appearing in the URLs?

I have pretty urls enabled.

UPDATE

It appears to have been cache related... I don't see it anymore.
JohntheFish replied on at Permalink Reply
JohntheFish
The glitches you are seeing are typical of out of date cache entries being carried across with the copy. If you made a point of not moving any cache files, there are also block cache records in the database the glitches could be coming from.