web page forum button link?

Started by swoodie, April 12, 2009, 06:00:48 AM

Previous topic - Next topic

swoodie

Hi all i like SMF workes pefect on my win2003 box with XAMPP, what i want to know is how to display my home page first then have a button on page that opens forum.


my site eg: http://www.zyx.com this just a normally home page then once some 1 clicks on forum it would be http://www.zxy.com/forum

any help would be great thanks.


JBlaze

Just add
<a href="http://www.zyx.com/forum">Forum</a>
wherever you want the link
Jason Clemons
Former Team Member 2009 - 2012

swoodie

Quote from: JBlaze on April 12, 2009, 06:03:05 AM
Just add
<a href="http://www.zyx.com/forum">Forum</a>
wherever you want the link



so when setting up SMF i just use http://www.zxy.com/forum for the url
but to have my home page come up http://www.zxy.com i place this in apache?

JimM

Build your home page in public_html and place your forum in public_html/forum.  That should give the result you are after.
Jim "JimM" Moore
Former Support Specialist

swoodie

Quote from: JBlaze on April 12, 2009, 06:03:05 AM
Just add
<a href="http://www.zyx.com/forum">Forum</a>
wherever you want the link


I get Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
http://www.zxy.com

any 1 point out what i am doing wrong?


when i use the above linked from webpage

Tyrsson

Have you created the folder and installed SMF in the /forum folder?

Do you have a .htaccess file in the directory?



Who marked this topic as solved?
PM at your own risk, some I answer, if they are interesting, some I ignore.

swoodie

Hi yes forum installed in that folder

forum all works

no .htaccess file in the directory

i marked is closed other day but didn't relaise on error


i can open forum if i use www.zxy.com/forum

but trying to link from webpage to open forum

Tyrsson

Can you please post the exact link you are trying to use.
PM at your own risk, some I answer, if they are interesting, some I ignore.

swoodie


swoodie

this is the apche error log
after i have clicked on forum link from web page
[Tue Apr 21 22:01:41 2009] [error] [client 192.168.0.55] (20024)The given path is misformatted or contained invalid characters: Cannot map GET /%3Ca%20href=%22http://www.fishing-general.com/forum%22%3EForum%3C/a%3E HTTP/1.1 to file, referer: http://www.fishing-general.com/

Tyrsson

This is the link that I get when I copy the link location:

http://www.fishing-general.com/%3Ca%20href=%22http://www.fishing-general.com/forum%22%3EForum%3C/a%3E

Try linking it just like this:

<a href="http://www.fishing-general.com/forum">Forum</a>
PM at your own risk, some I answer, if they are interesting, some I ignore.

swoodie

Same error after changing to yours

Tyrsson

What editor are you using to code the main site?
PM at your own risk, some I answer, if they are interesting, some I ignore.

swoodie


Tyrsson

When I view the source of the page I get this as the link:

<a href="&lt;a href=&quot;http://www.fishing-general.com/forum&quot;&gt;Forum&lt;/a&gt;">FORUM</a>
PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

Instead of pasting the link into dreamweaver try typing it.

Also see if using this helps:

<a href="http://www.fishing-general.com/forum/index.php">Forum</a>
PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

Here is the code from one of the other links. As you see Dreamweaver is not using the entire path:

<span class="style5"><a href="about.htm">ABOUT US</a> </span>

Its only using the file name.

So you may have to actually view the code view and add the link by typing the link instead of inserting the hyperlink since DW may try to link it in the same way.
PM at your own risk, some I answer, if they are interesting, some I ignore.

swoodie

Thanks man your a legend just typing worked



i was to lazy to do that so i just did cut paste


thanks again for your help

Tyrsson

Awesome :)

Glad you got it sorted out.
PM at your own risk, some I answer, if they are interesting, some I ignore.

swoodie

thanks again you can close if you like now.

Advertisement: