This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Rewrite rule help please
Message |

Joined: 22 June 2010
Posts: 1
Posted: 22 June 2010 at 4:45am

Hi I am trying to write a simple rule that will rewrite as

This version seems to work fine:

RewriteRule ^testing/([^/\.]+) test.asp?fred=$1 [NC,L]

but this one (with dollar marking end of string) does not:

RewriteRule ^testing/([^/\.]+)$ test.asp?fred=$1 [NC,L]

Why not, what am I doing wrong?

Many thanks in advance.

Back to Top

Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 23 June 2010 at 3:45am


I'd suggest using the following:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^testing/([^/]+)$ /test.asp?fred=$1 [NC,L]

This will test if the file or folder exist physically and will rewrite it.

Back to Top

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum