get the main domain url
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #1
get the main domain url
for example, I have a new domain using MyBB, by name: domainsx.xxx

then, I will make a forum in the directory /forum/
or in other words:

http://www.domainsx.xxxx/forum (NOT in the root folder)

I want to ask:

in the main menu, I want to create url shortcut directly to my default domain, domainsx.xxx

I've tried:

PHP Code:
<li><a href="{$mybb->settings['bburl']}/index.php">Home</a></li>

(from the url above, the page will go to the forums)

and change to:

PHP Code:
<li><a href="{$_SERVER['REQUEST_URI']}">Home</a></li>

(from the url above, the page will also be heading to the forums)


but it did not work. where does the fault?


Quote:note:
I Don't Want to make such a direct url.

PHP Code:
<li><a href="http://www.domainsx.xxx">Home</a></li>


Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
08-18-2014 02:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #2
RE: get the main domain url
sorry, the problem has been solved. Tongue

Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
08-18-2014 03:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: