Forum Moderators: rogerd

Message Too Old, No Replies

How do I make my forum accessible with just domain name as URL?

         

indisource

3:01 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



Hi All,

I quickly went through the forum and found no posts on this subject, hence decided to post one myself.
------------------------------------------------------
I have done my own installation of phpbb in my hosting server in the path:

public_html/forum/

The forum was accessible by giving the URL as

[example.com...]

I then did a redirect of index.html to the above URL.
Though now it is accessible when I say "www.example.com", but within a fraction of a second the address bar shows the link again as

[example.com...]

I feel this will not register my forum name in the public's mind.

Please can anyone tell me how I make it accessible and view it as [example.com...]

Hope it is not required to do any moving of forum installation files or a re-installation in a different location!

Regards.

[edited by: rogerd at 1:59 pm (utc) on Mar. 30, 2005]
[edit reason] examplified [/edit]

Marketing Guy

3:41 pm on Mar 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could move all the files to root and simply change the configuartion path in the forum admin - shouldn't be too much hassle to do. Just open up the /forum folder in your FTP programme, select all files / folders and move them to your root (/public_html).

This way, typing in www.domain.com will bring up www.domain.com/index.php (your forum homepage).

But if www.domain.com redirects to the forum already anyway does it matter what the URL is? I don't think users will notice much of a difference or really care that much.

It would be a different story if www.domain.com was a blank page and they had to type in the full path to get to the forum....

Scott

EDIT: Welcome to WW! :)

arrowman

4:50 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



If you're using Apache, you can use a non-redirecting rewrite rule, instead of a redirect. This maps the URL internally within Apache, instead of sending the mapped URL back to the browser. See the documentation of mod_rewrite.

indisource

12:36 am on Mar 30, 2005 (gmt 0)

10+ Year Member



Hello Marketing Guy,

Thanks for your message.
I moved all the forum files and directories to the root directory(public_html). Now when I try accessing using the URL www.mydomain.com, I receive the following error:

Warning: Unknown(/home/userid/public_html/index.php): failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown(/home/userid/public_html/index.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening '/home/userid/public_html/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

Would you know why this error appears?
Is it required to run the install.php after moving the files to a new location?

Anybody else who are aware of this issue please help.

Regards,
Indisource

Marketing Guy

8:01 am on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry I've no idea - never seen that before. Maybe something to do with the way your host is setup - I never had any problems changing directory before.

Scott

kodaks

9:03 pm on Mar 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This thread may help:
[webmasterworld.com...]

indisource

12:12 am on Mar 31, 2005 (gmt 0)

10+ Year Member



Kodaks,

Thank you, the information in the thread was useful for redirecting.