mod_rewrite with mono (apache mod_mono) [solved]

Discuss practical ways rearrange URLs using mod_rewrite.

mod_rewrite with mono (apache mod_mono) [solved]

Postby dak » Tue May 27, 2008 9:09 pm

Hello,

well i have a pretty strange problem, i'm using a rewrite rules like follow :

the basic idea it's to ignore physical file, directory and the handler /ajaxpro/

Code: Select all
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/ajaxpro/.*$

RewriteRule ^(.*)$ default.aspx?q=$1 [L,QSA]


so if i call directly with my domain http://foo.bar/ajaxpro/somethings... it's work it's sent me the dynamic script generated by the handler of mono server

now if i use my website like : http://foo.bar/ the script is sent to the client without problem

but now the problem is if i call the site like http://foo.bar/blog/somethings it's doenst sent me the script and i get when i look on the data i receive another copy of the site ...

so any idea or help ?

ho and /ajaxpro/ is a handler attached virtualy to the docroot from mono server (its attached virtualy again on the main document root of the site (physical one))

any ideas, or help if anyone have a bit of time ? :)
thanks you very much in advance

Edit :
after looking around the forum i have solved my problem
maybe it's can help people using mod_mono / aspx.net with ajaxpro module

my solution and it's working was :
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(ashx|asjs)$ [NC]
RewriteRule ^(.*)$ /default.aspx?q=$1 [QSA,L]
dak
 
Posts: 1
Joined: Tue May 27, 2008 8:54 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 23 guests

cron