|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi - I recently decided to clean up a lot of code by removing a big chunk of repetitve code from all my files and using a server side include to reference it. It works, but only if the files that do the including have .shtml endings (which my hosting provider said was necessary for the SSIs to work)
What's shtml and do search engines penalize us for using shtml endings (ie is the included code invisible to the engines or the shtml files invisible themselves)? Thanks, dave phonesource.com |
|
|||
|
Hi,
The .shtml extension is necessary in order for the server to read the page as one and be able to parse those include files as one. It's become quite the common practise nowadays. I use it, but with .php No, you won't get penalized |
|
|||
|
Hi Dave:
If you change all your page names from .html to .shtml they are all new pages as far as the search engines are concerned, and as far as links are concerned too,so it can be a bit of a problem. If a search engine has an html page of yours ranked for a term and a user clicks on the .html link when you have changed the pages to .shtml they will get a 404 error. If you are hosted on an Apache server and have mod_rewrite installed, you can set it up so that server side includes will work with .html pages saving you the work of getting all your links changed etc. |
|
|||
|
Ahh, yes...
Further to Mel's post, There's a couple things you can do through apache re-writes Permanent re-direct and extension modification The latter one, I don't have off the top, but for redirects... Create a file called htaccess.txt with notepad and insert the following: Redirect permanent /oldpage.html http://www.yourdomain.com/newpage.shtml so atleast if your pages are in SE's index, they'll get re-directed to the new pages. Just add additional lines for each page, you've changed Upload the file to your root directory and change the name to .htaccess |
|
|||
|
You can also do the extension modification in the htaccess file, but rather than explain it all here there is a nice tutorial at:
http://www.avsfriendly.com/tutorials...ess.html#myssi |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |