Webmastersite.net
Register Log In

Links Redirect Issues
Links are redirected back to wrong url

Comments on Links Redirect Issues

Dada44
Beginner

Usergroup: Customer
Joined: Jul 05, 2007

Total Topics: 1
Total Comments: 2
Dada44
Posted Jul 05, 2007 - 11:57 PM:

I have my links directory in a subdir (www.mysite.com/links) and I have two issues right now.

In the admin section, clicking on "Browse Categories" at the botton redirects to "www.mysite.com/mysite/links" (site name showing twice) rather than open in "www.mysite.com/links/index.php" I have tried to change the codes in some tpls but not working for me.

Secondly, I activated the "open links in frameset" in admin switches. The problem now is whenever someone clicks on a link in the directory, it opens up the external site fine but the "Return to mysite Links Directory" at the top takes them to "www.mysite.com/mysite/links" (site name showing twice) rather than open "www.mysite.com/links/index.php"


Any help is appreciated.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 06, 2007 - 9:20 PM:

Since you wrote incomplete urls in your post, perhaps you also wrote them in your admin panel. At Admin -> Settings -> System you need to have the full site and directory URLs. A website URL starts with either http:// or https:// .
Dada44
Beginner

Usergroup: Customer
Joined: Jul 05, 2007

Total Topics: 1
Total Comments: 2
Dada44
Posted Jul 08, 2007 - 7:13 PM:

Hi Paul,

I didn't write the wrong urls as you indicated. I actually have the http:// in the beginning. Your solution is not what I expected as I have gone thru the whole admin menu section. And my problem persist.


The main issue is the code below and how it redirects the link back in the redirect or link tpls:

if (!$id && !$orderid && !$catid && !$action) { $template = new template("redirect.tpl");
$template->replace('{MESSAGE}', $language->nosuchlink);
$template->replace('{DESTINATION}', 'index.php'); }



Whenever it tries to direct people back to my Directory, it goes to the wrong url "http://www.mysite.com/mysite/links" (site name showing twice). I have checked the config file and it looks fine. The url in the admin > settings is "http://www.mysite.com/mysite/links/index.php"


$prefix = 'links_';
$dirurl = 'http://www.mysite.com/links';
$uploadpath = '/home/xxxxxxxx/public_html/mysite/links/attachments/';

I am using "mysite" and "xxxxxxxx" for illustrative purposes and they represent the site name and root dir respectively.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 08, 2007 - 9:41 PM:

The url in the admin > settings is "http://www.mysite.com/mysite/links/index.php"

The setting asks for the directory name, not a file name. Read the instructions next to it and remove the /index.php.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.