Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-26-2007, 12:45 AM
Junior Member
 
Join Date: Jul 2007
Posts: 11
Default Suggestion for isapi rewrite rule in docs...

Hello!

The documentation suggests that you use the following Isapi_rewrite rule:

RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)? /index.php [i]

This works very well, unless you have dashes in your URL. Here's a nice addition:

RewriteRule ^[\w/\%\-]*(?:\.(?!(?:js|ico|gif|jpg|png|css)$)[\w\%]*$)? /index.php [i]

Also, it might be nice to add "swf" to the list of ignored file types as a default.

Thanks!
- Bret

Last edited by clone45 : 07-26-2007 at 02:47 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 07:28 PM
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

hi

How to using this rewrite rule enable this requests:

temp,temp.html and temp.html?var=value&what=ever

This rule dosen't match....

Marcin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 09:22 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

If you're using Zend MVC then you shouldn't be running into either of those conditions, since both of them should look more like:

/controller/action/var/value/what/ever

Besides what's the point of rewriting your URL if you can't make it clean?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 10:43 AM
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

Hmm

I'm using my own class to rewrite request in Zend Framework, so I know how look like MVC but this URLs are better to positioning in search engines

I hope someone could help me ??? :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 11:14 AM
Junior Member
 
Join Date: Feb 2008
Posts: 3
Default

Hi

I found solution:

Code:
RewriteRule ^[\w/,\%]*(?:\.(?!(?:js|ico|gif|jpg|swf|png|css)$)[\wA-Z?=&\%]*$)? /index.php [i]
This program will be very helpfull:
Regex Studio Software Tool for Microsoft.Net


All the best

webik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:06 PM.