![]() |
changing html to php
I didn't know where to put this but I figured someone in here could help me :)
I can't believe I didn't think of this before I started all this work |banghead| but I'm looking at changing just my index/main pages on my LL from html to php and wondered if anyone has done this & what they did about their link trades? I also have recips pointing to main.html, so what would be the best way to redirect that to the .php? thanks for any input! :) |
you can run php pages as .html by adding this line to you .htaccess or apache config.
PHP Code:
|
Quote:
What if I had a script that generates the page as .php and I can't change that (or at least can't figure out how I could lol) |
Quote:
|
And for a convoluted workaround, if you can't for some reason get the script to create/use .html extensions, you can let it generate the index.php page and then you can use a PHP include statement to pull the contents of that page into your index.html page. If the script builds exactly the page you want, this could be the complete contents of your index.html page on your server:
Code:
|
Quote:
|
Quote:
I think I will try Simon's runaround...oops, I mean workaround :D and see what happens. Thank you Bob, Simon, UW & Preacher |blowkiss| |
just FYI - you were all right!!
I used the php include, and added BBob's line into my htaccess, and by golly, it all worked |bananna||bananna| still tweaking things, but BIG thanks guys! :) |
You've been a busy little girl:D
I love the BlinkList concept|thumb |
thanks for your support TPat!! :)
now I'm gonna go dream in css lol |
I like that idea as well. :)
That's actually how my blog started out, as the index of my linklist. I have no idea why I seperated the two (this is probably 2-3 years ago) but I keep trying to convince myself to combine the two again. |
Do you have ssh access to your account ?
|
All times are GMT -4. The time now is 08:18 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc