(Solved)Missing slash before Uploads.
Posted: Fri Jun 24, 2011 6:33 pm
Afternoon All - I apologize is if I put this in the wrong place.
I have a cmsms site on a windows server over at Godaddy. I thought I had this problem figured out but apparently not.
When I am using the editor to add a link to a file stored in uploads (PDF), the link ends up missing the slash between the .com and the uploads. so I get comuploads.
<a href="http://www.coronacollege.comuploads/pdf ... student</a>
Sample Link:
http://www.coronacollege.com/index.php?page=sample-2
From the config:
$config['root_url'] = 'http://www.coronacollege.com';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.coronacollege.com';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = 'D:\Hosting\123456\html';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = 'D:\Hosting\123456\html\tmp\cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = 'D:\Hosting\123456\html\uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = 'D:\Hosting\123456\html\uploads\images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
From the System Information:
D:\Hosting\123456\html (0777) Success
previews_path:
D:\Hosting\123456\html\tmp\cache (0777) Success
uploads_path:
D:\Hosting\123456\html\uploads (0777) Success
uploads_url:
http://www.coronacollege.com/uploads
image_uploads_path:
D:\Hosting\123456\html\uploads\images (0777) Success
image_uploads_url:
http://www.coronacollege.com/uploads/images
ssl_uploads_url:
/uploads
Current PHP Version (phpversion):
5.2.17 Success
Version 1.9.2 "Tevairoa"
I can upload files no problem, and I can link images no problem, but linking to a file to be downloaded is a no go. I have compared it to the existing files of other sites but I don't see a difference.
I have played with the slashes and I have reviewed what I could find on the forum but so far nothing has worked. Honestly it looks right, but it would not be the first time I was blinded to the obvious.
Any help would be appreciated, thank you!
D
I have a cmsms site on a windows server over at Godaddy. I thought I had this problem figured out but apparently not.
When I am using the editor to add a link to a file stored in uploads (PDF), the link ends up missing the slash between the .com and the uploads. so I get comuploads.
<a href="http://www.coronacollege.comuploads/pdf ... student</a>
Sample Link:
http://www.coronacollege.com/index.php?page=sample-2
From the config:
$config['root_url'] = 'http://www.coronacollege.com';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.coronacollege.com';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = 'D:\Hosting\123456\html';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = 'D:\Hosting\123456\html\tmp\cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = 'D:\Hosting\123456\html\uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = 'D:\Hosting\123456\html\uploads\images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
From the System Information:
D:\Hosting\123456\html (0777) Success
previews_path:
D:\Hosting\123456\html\tmp\cache (0777) Success
uploads_path:
D:\Hosting\123456\html\uploads (0777) Success
uploads_url:
http://www.coronacollege.com/uploads
image_uploads_path:
D:\Hosting\123456\html\uploads\images (0777) Success
image_uploads_url:
http://www.coronacollege.com/uploads/images
ssl_uploads_url:
/uploads
Current PHP Version (phpversion):
5.2.17 Success
Version 1.9.2 "Tevairoa"
I can upload files no problem, and I can link images no problem, but linking to a file to be downloaded is a no go. I have compared it to the existing files of other sites but I don't see a difference.
I have played with the slashes and I have reviewed what I could find on the forum but so far nothing has worked. Honestly it looks right, but it would not be the first time I was blinded to the obvious.
Any help would be appreciated, thank you!
D