Default Landing Page if no PURL

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 20 Aug 2012, 19:40

Default Landing Page if no PURL

20 Aug 2012, 19:47

Hoping you can assist with two issues.

We're running PURL campaigns where the URL entered is usually:
http://www.mysite.com/JohnDoe

If someone does not enter PURL, just goes to http://www.mysite.com, how can I bring up a default landing page rather than an "Under Construction" page?

Also, unless they enter www the site doesn't work and appreciate assistance with that.
Thanks in advance

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Default Landing Page if no PURL

21 Aug 2012, 07:45

Hello,

"If someone does not enter PURL, just goes to http://www.mysite.com"
- so if someone doesn't enter PURL, you want to perform redirect to the root, right?
And how can ISAPI_Rewrite understand if it's PURL or not? Can you give some more examples of what PURLs look like.


"Also, unless they enter www the site doesn't work and appreciate assistance with that."
- so do you need to have non-www to www redirect?

User avatar
Posts: 2
Joined: 20 Aug 2012, 19:40

Re: Default Landing Page if no PURL

22 Aug 2012, 23:46

A PURL would have the individuals name entered after the domain like www.mysite.com/JohnDoe.
If just the domain is typed with no user folder like www.mysite.com we want to default to a generic landing page at www.mysite.com/landing.aspx

And yes we need to figure out how to direct non-www direct to www.
Thanks for your assistance

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Default Landing Page if no PURL

23 Aug 2012, 03:54

Ok, please try the following rules:

RewriteBase /

#non-www to www
RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
RewriteRule (.*) http\://www.mysite.com/$1 [NC,R=301,L]

RewriteRule ^/?$ /landing.aspx [NC,R=301,L]

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 5 guests