View Full Version : Renaming index.html to index.shtml
I have a bunch of pages in directories that are the default index.html but want to change them to index.shtml so I can use virtual includes. Is this likely to cause problems with SES in regards to both the indexed pages and backlinks?
They are the indexes of each directory on my LL and as far as I am aware no-one uses domain/dir/index.html when linking to my categories, just the domain/dir/ so I am wildly guessing there shouldn't be too much of a problem, but an educated guess tells me I will run into problems if I just blindly go and rename each index .shtml - how can I make these changes without fucking evrything up, if it is at all possible to change in the first instance.
Many thanks in advance :)
MadMax
2006-01-11, 04:55 PM
Here's an easy method courtesy of Sparky
http://www.greenguysboard.com/board/showpost.php?p=184896&postcount=3
:)
Thanks Max,
Just about to hit the sack here, so apologies if you see this and I don't answer until tomorrow - what does that post mean? That I can add that to my root htaccess and just use the <!--#include file="filehere.inc" --> on my html page and it will work?
MrYum
2006-01-11, 06:11 PM
Thanks Max,
Just about to hit the sack here, so apologies if you see this and I don't answer until tomorrow - what does that post mean? That I can add that to my root htaccess and just use the <!--#include file="filehere.inc" --> on my html page and it will work?
Yup...I use includes for a number of things...and have all straight html files |thumb
Well then that pretty much rocks :) Thanks Max & Mr Yum, and Sparky for the original post |thumb
Hmm, that doesn't work for me, I have
RemoveHandler .html .htm
AddHandler server-parsed .shtml .html
AddType application/x-httpd-php .php .htm .html
in my root htaccess file but can't get the command
<!--#include virtual="insertfilehere.extension"-->
to appear on my pages, what dumbass thing am I doing wrong, any ideas?
TIA
Wazza
2006-01-18, 09:11 AM
Wot dis?
RemoveHandler .html .htm
Wazza
2006-01-18, 09:14 AM
Would appear to me, on a very quick read, to be an incorrect use of RemoveHandler
Shouldn't it go in a child directory's htaccess to stop html files from there on being parsed?
http://httpd.apache.org/docs/1.3/mod/mod_mime.html#removehandler
Try <!--#include file="insertfilehere.extension"-->
MrYum
2006-01-18, 10:49 AM
I dunno Toby...just checked and the syntax he's using is exactly what I use on ssi calls |huh
I'm inclined to agree that it's something in your htaccess. Here's the first 3 lines from one of mine...give it a shot Jel...and I'd completely take out the Removehandler...
RewriteEngine on
AddHandler server-parsed .html
Options -Indexes FollowSymLinks Includes
I dunno Toby...just checked and the syntax he's using is exactly what I use on ssi calls |huh That may not be the problem in this case, I just know that I've had issues using "virtual=" before and changing to "file=" solved my problem.
Thanks Guys,
Removehandler was the problem :)
Wazza
2006-01-19, 08:43 PM
Sweet :D
MrYum
2006-01-19, 09:34 PM
Awesome...glad that got ya fixed up Jel |thumb
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.