all my links are lost for secondary pages

Permalink
My home page looks fine. But when you use the menu to go to another page all the images and css are no longer linking. Links on secondary pages go to "page not found". Also the login for the dashboard is no longer styled and it goes to "page not found" when I try to login. My page has been running for years properly. This is a new development. Could this be a theme problem? I'm using C5 5.7.

 
Steevb replied on at Permalink Reply
Steevb
URL?
kenpicard replied on at Permalink Reply
kenpicardproductions.com
typoman76 replied on at Permalink Reply
typoman76
Hi have you restructered your server?

I see that your css is not loading. Your link goes to a subfolder 'kpproductions'. But you don't need that folder because your domain points to this folder.

1) Have you cleared cache? (You can manually delete the cache folder on your server -> files/cache)
2) Do you have a rewrite setting in .htaccess for this folder /kpproductions/
kenpicard replied on at Permalink Reply
Thanks for pointing out the .htaccess file. It is missing. Could you tell me what code I should write for it?
typoman76 replied on at Permalink Reply
typoman76
Are you sure this is missing? Becaus files beginning with a dot are invisible. You have to double check if your FTP software is showing hidden files.

I see 2 possibilites:

1) Log in to your concrete5 site. And remove and add pretty urls. This should write a .htaccess file if it is missing.

2) You can manually create this file as a text file with a code editor. Then place this code as a basic in it:

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


It could be that in your situation there is already an existing .htaccess file and the part of the RewriteBase is /kpproductions/.

This would be false:
RewriteBase /kpproductions/
...


Hope this helps one step forward.
Roland
kenpicard replied on at Permalink Reply
The problem is I cannot log into my site to get to the dashboard to turn off pretty urls and clear cache. When I hit the sign in button it says page not found. This site is hosted at godaddy and I have read that many other c5 users are having the same problem.
typoman76 replied on at Permalink Reply
typoman76
Hi kenpicard

You could try to login with yourdomain.com/index.php/login

After your login you will get a 404 because the redirect will not work.

Perhaps you could then call yourdomain.com/index.php/dashboard to open the dashboard directly.
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi kenpicard,

If you have FTP, SSH, or web host control panel access to your site files you can toggle the Pretty URLs setting by editing files directly.

The Pretty URLs setting is in application\config\generated_overrides\concrete.php. The setting config key inside this file is "url_rewriting".
- Pretty URLs enabled
'url_rewriting' => 1,

- Pretty URLs disabled
'url_rewriting' => 0,

Toggling the setting by editing the file does not remove or add the .htaccess file.

The cache files can be manually cleared. They are found in application\files\cache. All the files within the cache folder are part of the cache and can be deleted.

Before manually editing or deleting files, it is always recommended to have full backups.

If you are uncomfortable with working with files directly, I can refer you to someone who can do it for you.
kenpicard replied on at Permalink Reply
No application folder. I think a lot of other things are missing as well. I made a mistake earlier. I thought it was C5 5.7 but it is 5.6.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
What happens when you try to login from this link.

http://kenpicardproductions.com/index.php/dashboard/...
kenpicard replied on at Permalink Reply
Just goes to the login page.
hhockx replied on at Permalink Reply
hhockx
I ran in to the same problem yesterday. Looking for a solution I found this thread. I copied the .htaccess script and put in the homefolder of my website. Everything works fine now. It's great to have these forums around! Thanks typoman76 ;-)
kenpicard replied on at Permalink Reply
I have tried but it does not work. I'm not sure why it works for others but not in my case. I will be moving to another web host.