Default Landing Page if no PURL
4 posts
• Page 1 of 1
- HatterasPress
-
- Posts: 2
- Joined: 20 Aug 2012, 19:40
Default Landing Page if no PURL
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
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
Re: Default Landing Page if no PURL
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?
"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?
- HatterasPress
-
- Posts: 2
- Joined: 20 Aug 2012, 19:40
Re: Default Landing Page if no PURL
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
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
Re: Default Landing Page if no PURL
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]
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]
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests