Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi

I had my website on local servers, and installed it on a live server.
It is not the official URL, but I'm trying to install the site on :

http://173.247.253.77/~orizon7/

~orizon7 is the folder on my server where the site will be evantually.

Images acts like http://173.247.253.77/ is the root folder, and the only working page on the website is the index page.
I deleted the htacess file on the server to see if that was causing the issue...and still not working.

I have set the site URL in the config.php file to :
Code: Select all
define( 'K_SITE_URL', 'http://173.247.253.77/~orizon7/' );


I don't get why the home page works, and nothing else works.
Thanks for your help!
I think your site has prettyURLs enabled (in couch/config.php).
Please turn that off and see if that helps.

If it does, then before turning prettyURLs back again please make sure to set the sub-folder in the generated .htaccess file as follows
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /~orizon7


Hope it helps.
Thanks KK!

The website is working now, except that the "images" folder where all the image links that are not uploaded through the Couchcms admin are still broken.

When I copy the URL, it gives me
http://173.247.253.77/images/filename.png

The "~orizon7" is missing from the URL. Not sure how to fix this. Any ideas? Thanks again for your great support.
Looks like this is a known issue for many other people. It is probably not couch-related, but server-related. This /~user/ folder is not a real folder, it is a link to some real folder on server. So, webserver (Apache) can't help with rewritebase. To solve this you may try to change rules in htaccess to explicitly include ~user part in urls. (See http://forums.modx.com/index.php?action ... =17639&i=1 message above the very last one.)

OR another couch-solution is to rewrite in your source code all src tags to images as <cms:show k_site_link />images/image.png. To avoid changing *all* links - use <base> tag inside <head> section.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Another possible source of trouble is using relative to root paths in src:
wrong: src="/images/image.png" - here "/" makes a reference to domain, and not specific folder the website is placed into.
correct: src="images/image.png" - here all options of the above post will work, but 99% chance that it wouldn't require any effort at all.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
5 posts Page 1 of 1