Pages: 1
Topic closed
I used SSI (Server-Side Includes) to include the header of my phpBB forum into other pages on my site. However, the links in the header are meant to be used from the /forum directory, and thus generate 404 errors when used anywhere else. Does anyone know how one would go about changing the directory of all the links in a certain area?
Offline
Bumpz...
Offline
Aaaand the next day there's still no posts.
Offline
Use absolute URLs - instead of "path/file.php" use "http://www.site.com/path/file.php".
Hope this helps
Offline
TheSuccessor wrote:
Use absolute URLs - instead of "path/file.php" use "http://www.site.com/path/file.php".
Hope this helps![]()
But the link targets are stored in the phpBB MySQL database, and the source HTML (before it's parsed by phpBB) simply has tokens with the appropriate name. Here, look at this code snippet:
<div id="site-description">
<a href="/" title="Home page" id="logo">{SITE_LOGO_IMG}</a>
<h1>{SITENAME}</h1>
<p>{SITE_DESCRIPTION}</p>
<p class="skiplink"><a href="#start_here">{L_SKIP}</a></p>
</div>See the stuff in braces ({})? Those are tokens replaced when parsed by phpBB. This is the code when viewed in a web browser after being parsed by phpBB:
<div id="site-description">
<a href=".." title="Home page" id="logo"><img src="./styles/proDark/imageset/concat_logo.png" alt="" title="" /></a>
<h1>Total Concatenation</h1>
<p>A site for discussion about computers, programming (Scratch-level or any), gaming, and me (Skirmisher/meowmeow55)</p>
<p class="skiplink"><a href="#start_here">Skip to content</a></p>
</div>I'm just trying to get those to always link to the file in /forum. So unless you want me to go through and put /forum in front of all the link targets, um...yeah.
Or if it's going to take this long, I may as well just do that.
Offline
Skip it, I just added /forum/ to the front of all the link targets
. Reporting to be closed...
Offline
Topic closed
Pages: 1