Force traffic to root/main domain
9 posts
• Page 1 of 1
Force traffic to root/main domain
Hello - Is there a way to force all website traffic to main domain when a subdirectory is typed in. For example:
User goes to www.sub.domain.com/123
I then want to redirect them to www.sub.domain.com
Thanks!
User goes to www.sub.domain.com/123
I then want to redirect them to www.sub.domain.com
Thanks!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Force traffic to root/main domain
Sure,
But let me ask you. Do you want to redirect to the root of the sub-domain? Do you want to redirect any first-level folder? not sub-folders?
Regards
But let me ask you. Do you want to redirect to the root of the sub-domain? Do you want to redirect any first-level folder? not sub-folders?
Regards
Re: Force traffic to root/main domain
Thanks for getting back to me! I probably should have explained this better, it's actually opposite. I want all web users to be able to type www.domain.com but all web content is actually www.domain.com/ABC. So technically redirecting them to the content in sub-folder ABC.
Thanks!
Thanks!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Force traffic to root/main domain
Hello,
Please, try using the following:
Regards
Please, try using the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond ${HTTP:Host} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/ABC/$1 [NC,R=301,L]
Regards
Re: Force traffic to root/main domain
Hello Andrew,
I emailed support about this - are you able to help with email I sent to support? Or you don't work for Helicon?
Thanks!
I emailed support about this - are you able to help with email I sent to support? Or you don't work for Helicon?
Thanks!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Force traffic to root/main domain
I do, but you know the ticketing systems.. someone my have grabbed it. I can't find it.
Did you try the rule? What was the result? The best way is to troubleshoot this with rewrite.log. Logging is described in FAQ - http://www.helicontech.com/forum/10648-FAQ.html
Regards
Did you try the rule? What was the result? The best way is to troubleshoot this with rewrite.log. Logging is described in FAQ - http://www.helicontech.com/forum/10648-FAQ.html
Regards
Re: Force traffic to root/main domain
If you don't want users to ever serve content from the root, why not just change the path in IIS? Or am I missing something?
Re: Force traffic to root/main domain
We use helicon for a specific application and the support for that app told me to edit the helicon statement, so I started with that. My next step would have been IIS. Thanks for feedback!
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests