In dreamweaver, i'm trying to do something on my website. Now whenever someone clicks on a link like forums, i want to be www.forums.central-forums.net, but at the moment, that won't work....
These links should lead to pages at the very least. Something like forums.php or forums.html...
If you have directories in [icode]http://www.central-forums.net[/code] then they should have index.php or index.html for this kind of linking to work. The problem is when you're in a directory (say /forums/) the about link is linking to http://www.central-forums.net/forums/about
So I suggest that you do this instead:
But that's tedious if you have many links! If you have a variable/constant for holding http://www.central-forums.net/ --- now is the time to use it. =)
When you're in the forums, the links are pointing to http://www.forums.central-forums.net/forums/ and http://www.forums.central-forums.net/about --- which is probably wrong!
Your homepage, however, is working now. Meaning the links are pointing to the proper places http://www.central-forums.net/forums and http://www.central-forums.net/about etc.
The code I gave you is correct. You have to double-check your pages (specially the topmenu in your forums) because you're still 'relative-linking' to the about, donate, forums pages on the url http://forums.central-forums.net.
When you're in the forums, the links are pointing to http://www.forums.central-forums.net/forums/ and http://www.forums.central-forums.net/about --- which is probably wrong!
Your homepage, however, is working now. Meaning the links are pointing to the proper places http://www.central-forums.net/forums and http://www.central-forums.net/about etc.
The code I gave you is correct. You have to double-check your pages (specially the topmenu in your forums) because you're still 'relative-linking' to the about, donate, forums pages on the url http://forums.central-forums.net.
<?php
define ("BASE_URL", "http://www.central-forums.net");
?>
...
...
...
<p>This is <a href="<?php echo BASE_URL; ?>">a link to my homepage</a>. This is <a href="<?php echo BASE_URL;?>/forums">the forums</a>.
... and so on.
Last edited by kanaku; Dec 30th, 2008 at 3:16 am. Reason: made the code 'purtier'
I think I have an understanding of what is it you are requesting.
Or, atleast I had a great idea to implement. PHP - Chmod - New Directory - Click the link it builds a new directory; specifically for the person that clicked it? No?
Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.
This thread is more than three months old
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.