Shared Hosting Problem (Newbie)

Topics: Developer Forum, User Forum
Oct 22, 2008 at 4:23 PM
I currently host several sites using a shared hosting plan. The root folder is Htdocs. In Htdocs there is a folder named nutshelldesigns. It contains everything for the website www.nutshelldesigns.com When you use a browser, and enter in http://www.nutshelldesigns.com/ the name changes to http://www.nutshelldesigns.com/nutshelldesigns/ .

I have several other sites that have links to this site. A link like http://www.nutshelldesigns.com/products.htm will not work, you have to code the link to http://www.nutshelldesigns.com/nutshelldesigns/products.htm for it to work.

How can I get rid of the extra nutshelldesigns?

Thank you ahead of time for any respones to my problem.
Coordinator
Oct 22, 2008 at 5:10 PM
Are you using IIRF?  IIS? 
if so, what rules do you have?

if not, then you have something else going on.
Oct 22, 2008 at 6:54 PM

IIS

 

I had someone write a basic rule for me, but it was only for one page in the site. He was not able to create a rule that would work for any page in the site.

Oct 22, 2008 at 10:21 PM
Something like this

RewriteLog  D:\FTP\ingridsart\ISAPI_Rewriter.Log\iirfLog.out
RewriteLogLevel 0

MaxMatchCount 10

RewriteRule ^/nutshelldesigns/nutshelldesigns.html  /nutshelldesigns/index.html

Coordinator
Oct 24, 2008 at 1:07 AM
If you un-install IIRF, (or, let's keep it simple and just comment-out the single RewriteRule), then I suppose you still have the problem with the unwanted URL segment (http://www.netshelldesigns.com/nutshelldesigns  versus http://www.nutshelldesigns.com ) .  Is that right? 

If that is so, then the URL segment is coming in from something else - not IIRF.    and you may want to "remove it" at the source, not with a rewriter like IIRF.
In IIS Manager, you should see various websites, and in the properties for each website you can configure the name.  This name is used in the URL - eg "nutshelldesigns". 


Oct 24, 2008 at 2:31 AM

I am hosting with Internedia.net with a shared hosting plan. I cannot get to the IIS Manager. The tech people said I would need the rewriter. I am thinking that I need to do a redirect and a rewrite.

Yours,

Ken Cloud

Cloud Consulting Inc.

8317 Kingsthorpe Terrace, Suite 1

Richmond, VA 23229

p 804.357.9098

f 866.576.3854

www.CloudConsulting.com

Web Design and Email Consulting

This message contains information which may be confidential and privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message, or any attachment(s), is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail at kencloud@cloudconsulting.com and delete the message and any attachment(s). Thank you.

From: Cheeso [mailto:notifications@codeplex.com]
Sent: Thursday, October 23, 2008 9:08 PM
To: kencloud@cloudconsulting.com
Subject: Re: Shared Hosting Problem (Newbie) [IIRF:38278]

From: Cheeso

If you un-install IIRF, (or, let's keep it simple and just comment-out the single RewriteRule), then I suppose you still have the problem with the unwanted URL segment (http://www.netshelldesigns.com/nutshelldesigns versus http://www.nutshelldesigns.com ) . Is that right?

If that is so, then the URL segment is coming in from something else - not IIRF. and you may want to "remove it" at the source, not with a rewriter like IIRF.
In IIS Manager, you should see various websites, and in the properties for each website you can configure the name. This name is used in the URL - eg "nutshelldesigns".

Read the full discussion online.

To add a post to this discussion, reply to this email (IIRF@discussions.codeplex.com)

To start a new discussion for this project, email IIRF@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Coordinator
Oct 24, 2008 at 4:39 AM

yes, you need a rewriter.

You will need to Rewrite requests like www.nsd.com to prepend the nutshelldesigns segment at the beginning.

RewriteCond %{HTTP_HOST}  ^www\.nutshelldesigns\.com$
RedirectRule ^/nutshelldesigns(.*)$   http://www.nutshelldesigns.com/$1  

RewriteCond %{HTTP_HOST}  ^www\.nutshelldesigns\.com$
RewriteRule  ^/(?!nutshelldesigns)(.*)$    /nutshelldesigns/$1  [I,L]

What this says is, for a URL that comes in looking like www.nutshelldesigns.com/foo , rewrite it to www.nutshelldesigns.com/nutshelldesigns/foo .  You need a redirect if you want existing requests to www.nutshelldesigns/nutshelldesigns/whatever to get replaced in the browser address bar to look nicer. 

There is a twist having to do with IIS AppPools, but we'll solve that later if necessary. 

Oct 24, 2008 at 1:30 PM

Wow, incredible code!!!!! Works like a charm. With using Intermedia.net as my host and sharing plans across multiple companies, this will help clear up everything.

Thank you so much for this product!

Yours,

Ken Cloud

Cloud Consulting Inc.

8317 Kingsthorpe Terrace, Suite 1

Richmond, VA 23229

p 804.357.9098

f 866.576.3854

www.CloudConsulting.com

Web Design and Email Consulting

This message contains information which may be confidential and privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message, or any attachment(s), is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail at kencloud@cloudconsulting.com and delete the message and any attachment(s). Thank you.

From: Cheeso [mailto:notifications@codeplex.com]
Sent: Friday, October 24, 2008 12:40 AM
To: kencloud@cloudconsulting.com
Subject: Re: Shared Hosting Problem (Newbie) [IIRF:38278]

From: Cheeso

yes, you need a rewriter.

You will need to Rewrite requests like www.nsd.com to prepend the nutshelldesigns segment at the beginning.

RewriteCond %{HTTP_HOST}  ^www\.nutshelldesigns\.com$
RedirectRule ^/nutshelldesigns(.*)$   http://www.nutshelldesigns.com/$1  
 
RewriteCond %{HTTP_HOST}  ^www\.nutshelldesigns\.com$
RewriteRule  ^/(?!nutshelldesigns)(.*)$    /nutshelldesigns/$1  [I,L]

What this says is, for a URL that comes in looking like www.nutshelldesigns.com/foo , rewrite it to www.nutshelldesigns.com/nutshelldesigns/foo . You need a redirect if you want existing requests to www.nutshelldesigns/nutshelldesigns/whatever to get replaced in the browser address bar to look nicer.

There is a twist having to do with IIS AppPools, but we'll solve that later if necessary.

Read the full discussion online.

To add a post to this discussion, reply to this email (IIRF@discussions.codeplex.com)

To start a new discussion for this project, email IIRF@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Coordinator
Oct 24, 2008 at 3:50 PM
Don't forget:
IIRF is DonationWare.