使用网址重定向

时间:2018-07-29 06:38:49

标签: html url redirect navigation root

我有此链接,该链接在所有导航中都很常见。我希望它包含在导航中

$ROOT_URL = '192.168.1.67/office';

我希望它包含在所有导航中,以便其他笔记本电脑可以仅通过上述URL访问我的笔记本电脑文件。但是我在导航到这些页面时遇到问题。

导航如下:

<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
  <a class="navbar-brand" href="http://localhost/office">Khelyo Ki Jityo</a>
</div>
<ul class="nav navbar-nav">
  <li class="active"><a href="#">Home</a></li>
  <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Product<span class="caret"></span></a>
    <ul class="dropdown-menu">
      <li><a href="<?php echo $ROOT_URL; ?>product/addproduct.php">Add Product</a></li>
      <li><a href="<?php echo $ROOT_URL; ?>product/viewproduct.php">View Product</a></li>
      <li><a href="<?php echo $ROOT_URL; ?>product/removedproduct.php">Removed Product</a></li>
    </ul>
  </li>
  <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Auction<span class="caret"></span></a>
    <ul class="dropdown-menu">
      <li><a href="<?php echo $ROOT_URL; ?>categories/categoriesdetails.php">CategoriesDetails</a></li>
      <li><a href="<?php echo $ROOT_URL; ?>categories/categoriesremoved.php">Categories Auction</a></li>
    </ul>
  </li>
  <ul class="nav navbar-nav">
    <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $_SESSION['username']; ?><span class="caret"></span></a>
      <ul class="dropdown-menu">
        <li><a href="<?php echo $ROOT_URL; ?>account.php">My Account</a></li>
        <li><a href="<?php echo $ROOT_URL; ?>logout.php">Logout</a></li>
      </ul>
    </li>
  </ul>
</ul>

##标题##

0 个答案:

没有答案