So, I have the following RegEx..

```
RewriteRule ^([-a-z0-9]*[A-Z\.]+.*)$ file.php?string=$1 [QSA]

```

The URL I want `file.php` to trigger for must either have capital letters or a period in it, then send the URL to the PHP script.

However, the problem I have is that this script is triggering on **any** URL, because of the not-truly-escaped Period.

I've tried escaping the period with a backslash, or two backslashes, or three... but none stop the generic interpretation.

What am I doing wrong?

**Edit:** As an example,

```
RewriteRule ^([-a-z0-9]*[A-Z\\.]+[-a-z0-9\/]*)$ file.php?string=$1 [QSA]

```

Doesn't work, but

```
RewriteRule ^([-a-z0-9]*\\.+[-a-z0-9\/]*)$ file.php?string=$1 [QSA]

```

does escape it.

**Edit 2:** Examples of URLs I want to redirect:

* /some-page-goes-here.html
* /heres-Robs/Old/Page/

And ones I don't:

* /testing/one/two/
* /an/actual-file.gif

**EDIT 3:** Old regex was:

```
RewriteRule ^([-a-z0-9]*[A-Z\.]+[-a-z0-9\/]*)$ file.php?string=$1 [QSA]

```

But while writing the post, I updated the question's regex to what you see above.