Pretty URLs break links on pages

Permalink
If I enable pretty urls, they work and display perfectly for all pages (whether in the nav or not). HOWEVER, if there is a link to a file displayed on a page, the link will not work with pretty urls enabled, but works fine with them not enabled.

Example: I have "Sizimi's Download Folder" displaying links to files in a folder. When I go to the page with the cID, the links work fine, when I go the page with the pretty url, they do not (the requested URL was not found on this server).

I have disabled pretty urls for now so that my users can access their files, so I cannot provide a broken scenario for you to look at at this time, but here is an example page:

http://www.hotspotmusiccompany.com/concrete/index.php?cID=134...

 
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
How are you accessing the file paths? What HTML is generated for pretty URLs vs standard URLs?
michaelbard replied on at Permalink Reply
Hi and thanks for the reply.

If you mean "how am I accessing the file paths" for the files that are linked?
I am using an add-on called "Sizimi's Download folder" which creates links of all files in a directory you point to, after you define a path relative to the C5 root.

Here is the standard url:http://www.hotspotmusiccompany.com/concrete/index.php?cID=134

When I turn pretty urls on, it generates:http://www.hotspotmusiccompany.com/concrete/ron-babcock

...which gets you to the page just fine.
michaelbard replied on at Permalink Reply
Oh....and if i do an "inspect element" in my browser on the link, it delivers:

<a href="../client_files/Babcock/JACOBS FINAL MIX PREMASTER V1.mp3">JACOBS FINAL MIX PREMASTER V1.mp3</a>

(that is one of the files)
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
Are you using the BASE_URL constant to create the URL?
michaelbard replied on at Permalink Reply
Sorry for being in over my pay grade -)
First question : to create WHICH URLs?
Second question: Where is that code BASE_URL and how would I use it?

Thanks
ThomasJ replied on at Permalink Reply
ThomasJ
The last note on this threa wes a while ago and I wondered if you found a solution to your issue?

I have just the opposite problem. With Pretty URLs off, my auto-nav links work just fine. With Pretty URLs turned on, auto-nav links to my pages quit working and I get an Apache error, "page not found". I believe that this has to do with an .htaccess file that is automatically placed by c5 in the web site's root directory when Pretty URLs is turned on.

May I suggest that in your case, with Pretty URLs turned on, the .htaccess file exists and the page rewrites are functioning properly for you. With Pretty URLs turned off, the .htaccess file doesn't exit and c5 is not re-writing the directory paths.

The following is probably not your problem but it's a need to mention anyway. If these are links that you created and they are relative paths, be sure that you are including c5's <?php echo $this->getThemePath()?>. Example: <a href="<?php echo $this->getThemePath()?>/page-needed">Page Needed</a>. Whenever you are linking to c5 URLs, be sure to include the index.php before the sub-directories, right after the domain name so c5 can find them.

I'm still looking for my solution.
ntisithoj replied on at Permalink Reply
ntisithoj
I had the same problems, as have many other I see... and what fixed it was..
changing the

AllowOverride None

to

AllowOverride All

in the sites config file