Links lost to documents after site moved
Permalink
I know I have read this somewhere in the forums but I cannot find it. I have moved my site from behind a sub-directory (/nir) to the root directory. I have changed the site config file and all the site pages work fine, as do all the images on the site.
The site contains links to multiple PDF documents and these are not working. It seems that the links to the documents are holding onto the old sub-directory prefix while everyhting else is fine. On rolling over the link I see the following:
www.www.sitename.com.au/nir/index.php/download_file/-/view/... etc.
I should see
www.www.sitename.com.au/index.php/download_file/-/view/... etc.
I have about 160 links in the site and it has gone live and none of the links are right.
I have gone into file manager and refreshed all files, I have cleared the cache and the cache object folders. Can someone advise what else I need to do as the client is anxious.
Regards Ian
The site contains links to multiple PDF documents and these are not working. It seems that the links to the documents are holding onto the old sub-directory prefix while everyhting else is fine. On rolling over the link I see the following:
www.www.sitename.com.au/nir/index.php/download_file/-/view/... etc.
I should see
www.www.sitename.com.au/index.php/download_file/-/view/... etc.
I have about 160 links in the site and it has gone live and none of the links are right.
I have gone into file manager and refreshed all files, I have cleared the cache and the cache object folders. Can someone advise what else I need to do as the client is anxious.
Regards Ian
I have followed all of the steps in moving the site as per that link. I have moved several sites before and had no problems but this is the first with many links to PDF documents.
Oddly all the rest of the site is fine, just the links to the PDF's. These links were created at the timeof creating the Content Block. The link text was highlighted Add File was chosen and the PDF uploaded from the local machine to the server using File Manager and then chosen from within File Manager.
The DIR_REL is blank '' in the site.php file and all images are showing fine. Only linked files (PDF's) are displaying the previous DIR_REL value of '/nir'
I am using 5.3.3.1
Oddly all the rest of the site is fine, just the links to the PDF's. These links were created at the timeof creating the Content Block. The link text was highlighted Add File was chosen and the PDF uploaded from the local machine to the server using File Manager and then chosen from within File Manager.
The DIR_REL is blank '' in the site.php file and all images are showing fine. Only linked files (PDF's) are displaying the previous DIR_REL value of '/nir'
I am using 5.3.3.1
Do you need to specify a value for DIR_REL in site.php? Perhaps,
define('DIR_REL', '/nir');
define('DIR_REL', '/nir');
I read your message backwards. Do you have DIR_REL defined and it should be blank?
Please refer to the response above but yes the DIR_REF is blank.
I have fixed the problem manually by changing all the links in the pages affected. But I am concerend as to why this has happened as I have a further two or three sites under construction.
I have fixed the problem manually by changing all the links in the pages affected. But I am concerend as to why this has happened as I have a further two or three sites under construction.
im not sure, it works fine for me
what version of concrete5 are you using,