Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Search Engines (http://www.greenguysboard.com/board/forumdisplay.php?f=13)
-   -   Renaming index.html to index.shtml (http://www.greenguysboard.com/board/showthread.php?t=27838)

Jel 2006-01-11 12:29 PM

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 03:55 PM

Here's an easy method courtesy of Sparky
http://www.greenguysboard.com/board/...96&postcount=3

:)

Jel 2006-01-11 04:33 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 on my html page and it will work?

MrYum 2006-01-11 05:11 PM

Quote:

Originally Posted by Jel
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 on my html page and it will work?

Yup...I use includes for a number of things...and have all straight html files |thumb

Jel 2006-01-12 12:54 AM

Well then that pretty much rocks :) Thanks Max & Mr Yum, and Sparky for the original post |thumb

Jel 2006-01-18 06:24 AM

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



to appear on my pages, what dumbass thing am I doing wrong, any ideas?

TIA

Wazza 2006-01-18 08:11 AM

Wot dis?

RemoveHandler .html .htm

Wazza 2006-01-18 08: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...#removehandler

Toby 2006-01-18 08:27 AM

Try

MrYum 2006-01-18 09: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

Toby 2006-01-18 10:20 AM

Quote:

Originally Posted by MrYum
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.

Jel 2006-01-19 10:25 AM

Thanks Guys,

Removehandler was the problem :)

Wazza 2006-01-19 07:43 PM

Sweet :D

MrYum 2006-01-19 08:34 PM

Awesome...glad that got ya fixed up Jel |thumb


All times are GMT -4. The time now is 12:59 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc