![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Web Design Forums and discussions on webdesign |
Web Design | |||||||||
|
|
|
|
| |||||
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | > Client script is no better than [i]frame technology. > > If you can't use server side scripting then you are pretty much limited to > Server-Side includes or a local pre-processor to build your pages. I can use server side scripting, I just don't really know how. I didn't know if this could be done with PHP and if it could, how to prepare the files (or call the file). I can't seem to find any tutorials dealing with this, pprobably because I don't really know much about it or what it's called to search properly. If anyone could point me to a tutorial or even clue me in as to what I'm searching for, I'd be most appreciative. |
|
| | #2 (permalink) |
| Civilians | > search: 'include one file in another' That helps - I found exactly what I was looking for. SSI looks like the easiest way to do this, but I run into a problem - renaming all HTML files taht would use this to shtml from html. That would be a nightmare not only to rename the files, but worrying about search engines re-indexing my pages. Is there a way to do this without having to rename my html files to shtml? Can something be put in htaccess? |
|
| | #3 (permalink) |
| Civilians | Ian wrote: > Is there a way to do this without having to rename my html files to shtml? Yes. > Can something be put in htaccess? Yes. http://www.google.com/search?q=xbithack -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
|
| | #4 (permalink) |
| Civilians | Ian wrote: > If I did it that way I wouldn't have any html files on the site; they'd all > become shtml files. Not sure if that would make a difference in what I put > in htaccess. Better still, for forwards compatibility, redirect all files to URLs without any extension. Extensions are a bane on URLs. -- Toby A Inkster BSc (Hons) ARCS Contact Me ~ http://tobyinkster.co.uk/contact |
|
| | #6 (permalink) |
| Civilians | > Redirect "http://example.org/foo.html" to "http://example.org/foo". > Redirect "http://example.org/foo.shtml" to "http://example.org/foo". > Put your page at "http://example.org/foo". > > Now in the future you can make the resource at "foo" into an HTML file, or > a SHTML file, or a PHP file or even a PDF file or an MP3 file and you > won't need to ask people to update their links. My site has 300+ HTML files. With this method it looks like I'd have to put 300 lines worth of redirects in htaccess, correct? |
|
| | #7 (permalink) |
| Civilians | Hi Ian - On Wed, 20 Apr 2005 21 50 -0400, "Ian" <nospam@nospam.com> wrote:>My site has 300+ HTML files. With this method it looks like I'd have to put >300 lines worth of redirects in htaccess, correct? Nope. RedirectMatch supports regular expressions. To redirect everything ending in .html to .shtml with a status code to indicate that it is a permanent change (301): RedirectMatch permanent (.*)\.html$ http://www.example.com$1.shtml -- Ken http://www.ke9nr.net/ |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inserting HTML code in an HTML page | Francesky | Web Design | 4 | 07-22-2005 04:00 |
| Re: Displaying Microsoft Project Data in .html format | Mike Glen | Microsoft Applications | 1 | 07-12-2005 16:00 |
| Display html example code within html | GitarJake | Web Design | 1 | 11-05-2004 16:00 |
| displaying the HTML code in HTML | Astra | Web Design | 3 | 07-08-2004 07:31 |
| Trying to create an HTML Parser using MS HTML Object Library (reference) | AI-Pragma | Web Design | 0 | 06-15-2004 18:31 |
![]() | ![]() | ![]() |