Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.

If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping

Answers may be delayed for posts that do not include sufficient information.

URL Special Character Rewrites


I am finding URLs containing special characters are getting re-written.
So, for example, & gets turned into & and " gets turned into "
When I try to open a link (containing an &, ", etc.) that is stored in a URL field, the link doesn't work.
(Same problem in both Providence and Pawtucket2).

I suspect that the change is being done by PHP, somewhere(?)

I think that it should be possible to include some rewrite instructions in the .htaccess file to overcome this.
I have tried adding the following (to [...]/html/providence/.htaccess), to deal with just the ampersand (in Providence):

test to turn & (back) into &

RewriteCond %{REQUEST_FILENAME} \s(.?)\&amp\;([^\s]) [NC]
RewriteRule ^ /%1&%2 [L,NE,R]

This is not working.
Any suggestions on what I am doing incorrectly here.
Or any thoughts on how I can stop the change happening in the first place?

[I am using: Providence 1.7.5; Pawtucket2 1.7.5; CDWA Lite; Centos 7.6; Apache 2.4.6; PHP 7.1]

With thanks,


Sign In or Register to comment.