Jump to content

Recommended Posts

Posted

I have a second site I am seriously considering bringing here. It's current host is using Zeus. The site is mostly archives and I have about 30,000 links that point back to home.html which uses SSI. I know I can rename home.html to home.shtml and do a permanent redirect through Cpanel -

 

Redirect permanent /subdomain/home.html http://my_domain.com/subdomain/home.shtml

 

But I also discovered I could put

 

AddType text/x-server-parsed-html .html

 

in my .htaccess file and that works equally as well.

 

Or does it?? Which method is more efficient and/or causes less server stress?

 

Thanks,

Ty

Posted

Hi,

 

Neither cause that much of a strain on the server that would be worth worring about, although the htaccess is obviously going to use more processor juice (all of about 0.0000001% extra!)

 

I would say, its best to do it which ever way you want. Personnely I would do it via the redirect in CPANEL as then i can edit this without damaging any other files should i accidentley press the wrong button!

 

Jim

Posted
I have a second site I am seriously considering bringing here. It's current host is using Zeus. The site is mostly archives and I have about 30,000 links that point back to home.html which uses SSI. I know I can rename home.html to home.shtml and do a permanent redirect through Cpanel -

 

Redirect permanent /subdomain/home.html http://my_domain.com/subdomain/home.shtml

 

But I also discovered I could put

 

AddType text/x-server-parsed-html .html

 

in my .htaccess file and that works equally as well.

 

Or does it?? Which method is more efficient and/or causes less server stress?

 

Thanks,

Ty

I added a line similar to that that allows *.html pages to be parsed with PHP since I wanted to use php on a few of my pages, but didn't want to break any bookmarks or anything. My other choice was to figure out a mod_rewrite way of doing it - but that made my head hurt. :)

 

Vincent

Posted

Thank you gentlemen. That's kind of what I figured, I just wanted some more input. As both elements end up in the .htaccess file I think I'll think I'll use the "AddType text/x-server-parsed-html .html" method. That way I won't have to change any extensions or worry about "strays". 15,000+ pages be a real pain to have to debug :)

 

Thanks again

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...