I have the manual put onto the server, but it's all in one file. if I access the index file directly then the file's links are all right and everything, but the problem is, it's not in my design. I noticed that sites like PHPfreaks.com just included the file (I can see the HTML <head>, <title>, etc tags in the source) but the request URL is such:

Main Page: http://www.phpfreaks.com/phpmanual.php
One of the other pages: http://www.phpfreaks.com/phpmanual/page/ref.dbx.html

how do they include the content on each and individual pages as well (because they all have different filenames) if it's included?

    BTW, I've been studying apache rewrite to figure out if they were changing the URLs around and input some of those directories as external variables, but I decided to come here to see if I can get a quick answer before reading all that...

      Manual is also available for download in form of multiple files.

        yeah, I already have it all up but I can't figure out how to make it fit into my design, because as soon as someone clicks a link, it busts out and goes to the plain design.

          I know what you're talking about, and I love to know how to do this too.

          I have one idea, which may cause a few eyebrows to raise 😃

          Use Dreamweaver to apply your design to each file!!

          HTH

            heh well considering there's like a million different files I don't think that's an option, plus I don't have dreamweaver.

            But I did get a bit farther. I read up on Mod_rewrite, and now I have .htaccess file in the php-man directory that looks like this:

            <IfModule mod_rewrite.c>
              RewriteEngine On
              RewriteBase /php-man
              RewriteCond %{REQUEST_FILENAME} -f
              RewriteRule (^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*$) /index.php?temp=ubox&cont=phpman&page=$1 [QSA]
            </IfModule>

            Since I'm a badboy, when I got it to work the first time I didn't save the .htaccess, but that one wouldn't work for filenames that had numbers in it, but this one works does.

            http://www.thmnetwork.com/php-man/funcref.html

            as you can see it's adding another .html to the end, any ideas why?

            My only other problem besides that: getting the links to look at php-man by default, I tried using the &lt;BASE href> tag, but that didn't seem to work..

            the saga continues,
            Joel

              Write a Reply...