rustybadge Posted March 28, 2006 Share Posted March 28, 2006 I am trying to get a simple web shop thingy up and running, and I have run into a problem...I think I can see why the problem is happening, but I can't fix it. Any advice:[a href=\"http://www.lighterfluidweb.com/shop/admin/login.php\" target=\"_blank\"]http://www.lighterfluidweb.com/shop/admin/login.php[/a] (login with admin admin). The left nav in the admin section is not taking me to any of those sections, and I think (when I look at the url it is trying to reach, that it is "doubling" the web root... can anyone PLEASE help me cure this??Many many thanks,RussellSweden Quote Link to comment https://forums.phpfreaks.com/topic/5992-lord-help-me/ Share on other sites More sharing options...
shocker-z Posted March 28, 2006 Share Posted March 28, 2006 looks like you have you links like<a href="/home/www/lighterf/shop/admin/category/">category</a>instead of<a href="category/">category</a> Quote Link to comment https://forums.phpfreaks.com/topic/5992-lord-help-me/#findComment-21497 Share on other sites More sharing options...
rustybadge Posted March 28, 2006 Author Share Posted March 28, 2006 [!--quoteo(post=359194:date=Mar 28 2006, 04:52 AM:name=shocker-z)--][div class=\'quotetop\']QUOTE(shocker-z @ Mar 28 2006, 04:52 AM) [snapback]359194[/snapback][/div][div class=\'quotemain\'][!--quotec--]looks like you have you links like<a href="/home/www/lighterf/shop/admin/category/">category</a>instead of<a href="category/">category</a>[/quote]That's the weird thing. My links look like this: <a href="<?php echo WEB_ROOT; ?>admin/category/" class="leftnav">Category</a>with this at the top of the page:<?phpif (!defined('WEB_ROOT')) { exit;}$self = WEB_ROOT . 'admin/index.php';?>I thought I had configured the site okay, because SOME of it was working...Any further advice? Quote Link to comment https://forums.phpfreaks.com/topic/5992-lord-help-me/#findComment-21498 Share on other sites More sharing options...
shocker-z Posted March 28, 2006 Share Posted March 28, 2006 well it's because your using WEB_ROOT which is /home/www/lighterf/shop/ all you need is the second bit.. Quote Link to comment https://forums.phpfreaks.com/topic/5992-lord-help-me/#findComment-21506 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.