Oct 15, 2010 at 2:40 PM
Edited Oct 15, 2010 at 2:58 PM
|
Thanks for the reply, This is the script that I wrote :
##########################
#Redirect Script
#Rahul Gulati
##########################
#RewriteLog file
#RewriteLogFile c:\temp\iirfs
#To check configuration of IIRF URL Rewriter
#StatusUrl /iirfStatus
RewriteEngine ON
#RewriteFilter priority set high
RewriteFilterPriority HIGH
# Explictly added to don't rewrite any request that ends with one of these extensions
# Because of the [L] flag, any (or GIF image, etc) will not be processed by any rules appearing later in this ini file.
RewriteRule (.+\.)(php|jpg|png|jpeg|gif|ttf|sql|txt|htm|zip|css)$ - [L]
# Don't rewrite anything that starts with /newform.aspx,editform.aspx or dispform.aspx
# Again, because of the [L] flag, URLs that match here will not be processed by any other rules appearing later in this ini file.
RedirectRule ^/NewForm.aspx?rootfolder=/(.*)$ - [L]
RedirectRule ^/NewForm/(.*)$ - [L]
RewriteCond %{nawinapp107.enterprisenet.org} ([^\.]+)\NewForm.aspx$ - [L]
RewriteCond %{HTTP_HOST} ^www\.domain1\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain2\.com$
RewriteRule ^/(?!NewForm.aspx)(?!.*\?rootfolder=$)(.*)$
# Rule for lowercase
RedirectRule ^/(.*[A-Z].*)\.aspx$ /#L$1#E.aspx
I am again explaining the issue here :
When I am trying to create new item in the list of the MOSS 2007 (Sharepoint), the url is not changing into lowercase as per the script rule - #rule for lowercase (you can see above),
Example -
https://abc.xyz.com/Support/Connections/Lists/Polls/NewForm.aspx?RootFolder=%2Fsupport%2Fconnections%2FLists%2FPolls&Source=https%3A%2F%2Fintranet%2Enielsen%2Ecom%2Fsupport%2Fconnections%2FLists%2FPolls%2FAllItems%2Easpx
as per the redirect rule it should be turned into lowercase and so on :
https://abc.xyz.com/support/connections/lists/polls/newform.aspx?rootfolder=%2Fsupport%2Fconnections%2FLists%2FPolls&Source=https%3A%2F%2Fintranet%2Enielsen%2Ecom%2Fsupport%2Fconnections%2FLists%2FPolls%2FAllItems%2Easpx
but it is not happening so when we are submitting the form its changing the url to lowercase and due to that all the data submitted
got refreshed, which ultimately causing the issue, so I would like to write that rule which prevents this issue.(you can see the rule with name : # Don't rewrite anything that starts with /newform.aspx,editform.aspx or dispform.aspx and its beyond)
Please let me know if we can write some rule which will ultimately stop this rewrite if newform.aspx,editform.aspx comes into url path.
Please let me know if you have any queries.
Regards,
Rahul Gulati
|