URGENT: After uploading site, paths to download files is wrong

Permalink
I don't know if I am doing something wrong, but I developed a site locally in a subdirectory and tested everything as localhost/mysite. I then uploaded everything to the customer site with everything at the root in public_html. All works great except that any file link I had added using the "Add File" in the Content block has the wrong path. It has a path with the extra "mysite" added (e.g. mysite.test.com/mysite/index.php/download_file/etc. I can go to each page and delete the link and re-add it but this seems like a bug. The images all work fine so it seems to be only files I added via "Add File". Am I doing something wrong? I tried clearing cache and it didn't work. I double-checked the config file and I have the correct values. I have BASE_URL set to the corect domain and I have set define('DIR_REL', '');

I'd appreciate any help. This site is supposed to go live next week and I was doing some testing and just discovered it.

 
jgarcia replied on at Permalink Reply
jgarcia
Clear your C5 cache. Dashboard -> Settings -> Debug -> Clear Cache.
dg1 replied on at Permalink Reply
I cleared the cache several times and it does not seem to help. I am in the process of deleting and recreating the file links but I have quite a few of them to "fix" so this really concerns me.

It makes me wonder if I am doing something wrong in my process because I didn't find anything else on the forums about this and it seems like other people would run into this. I develop locally and then upload all files and import the DB.

I have not enabled pretty URLs (if that makes a difference).

Thanks.
dg1 replied on at Permalink Reply
I did a mysqldump to look at my database and I found that the invalid path (i.e. extra directory) is in my btContentLocal sql entries for the href entries I added that point to files.

How do other people add references to files when the end directory may differ from the one using on the local machine during development? I used "Add File" but now I'm wondering if this has a bug.

Thanks.