This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Extension left on
Author
Message |
mercedes
Newbie


Joined: 30 November 2007
Location: United States
Posts: 32
Posted: 02 January 2012 at 11:37am

I tried to change this
RewriteRule ^(?!.*\.(?:js|jpg|png|gif|swf|xml|mp3|asx|ascx))CD/(.*)$ Webpages/$1.aspx [NC,L,QSA]

To
RewriteRule ^(?!.*\.(?:js|jpg|png|gif|swf|xml|mp3|asx|ascx))CD/(.*)$ Webpages/$1 [NC,L,QSA]

But it still takes off the .aspx extension

How can I leave the extension on???
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 03 January 2012 at 3:24am

Could you please clarify:
- what is the initial requested URL
- what is the result you want
- what part you want to catch in $1 ?

__________________
Regards,
Anton
Back to Top
 
mercedes
Newbie


Joined: 30 November 2007
Location: United States
Posts: 32
Posted: 03 January 2012 at 10:31am

Hi Anton,

Looking to have www.Autoland.com/AutoLand/Webpages/Toyota.aspx

To be

www.Autoland.com/CD/Toyota.aspx

Thank You.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 04 January 2012 at 5:08am

Please try the following:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^CD/([^./]+\.aspx)$ AutoLand/Webpages/$1 [NC,L]

__________________
Regards,
Anton
Back to Top
 

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

Printable version Printable version