Link to home
Start Free TrialLog in
Avatar of Sudhanshum
Sudhanshum

asked on

Querystring is giving issue (URL rewriting ) in 4.0 .Net

Hi I am sending an email blast and on email I am connecting each button with userid so if any user who get email click that email then  his click can be recorded. For eg Button click is like this:
http://www.Testweb.com/Pages/EmailBlast/Email.aspx?Id=1&page=www.Testweb.com/Pharmaceutical_Packaging__Details.aspx

previously I was using 3.5 framework and it was working fine there but now after switching to framework 4.0, instead of going to page Email.aspx
its trying to go to www.Testweb.com/Pharmaceutical_Packaging__Details.aspx, FYI I am doing URL rewriting also.

   How I can fix this problem. For fixing issue I had to remove http tag so when I call page like below then its working
http://www.Testweb.com/Pages/EmailBlast/Email.aspx?Id=1&page=Pharmaceutical_Packaging__Details.aspx


  Please help
Avatar of ste5an
ste5an
Flag of Germany image

First of all: Using no SSL is a no-go and will lead for sure to more blocked/refused mails by AV than necessary.

I would have used a different URL design by default. Instead of your human-readable and long URL I would have used a single hash: https://email.contoso.com/JVAipc5idIWpEaOI. It's cleaner and shorter. Just keep a table of hashes to user and sent date in your database.

Bonus: you can change the redirection target in the back-end, even when the mail is already send, which is much simpler than changing your URL rewrite rules.

For concrete help: You need to post you URL rewrite rules.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.