1
silverpug
redirects to wrong place
  • 2005/10/30 15:20

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


hello everyone.. I am having some problems again with my website.. can anyone help me please?

my website is inside a folder called portal

so its

www.pug-club.com/portal/index.php

but when i am inside the website and click on home it takes me to

www.pug-club.com/portal/portal/index.php

i don't know why and i don't understand why.. can anyone help or offer ANY advise??

if anyone wants to get in the site and try to help me, user name and pass for testing is the same " testuser"


thank you
constantinos

2
silverpug
Re: redirects to wrong place
  • 2005/10/31 9:46

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


Sorry for being impatient but the problems still exist with my website despite my efforts to understand where the error is. Can anyone help ??

Thanks

3
jdseymour
Re: redirects to wrong place

Not 100% sure as I cannot see you configuration file. But I am sure that in mainfile.php you have the subfolder /portal defined in the physical path. I would think that since it is defined physically it does not need to be included in the virtual path. So in mainfile.php the virtual path should be:

http://www.pug-club.com

Instead of:

http://www.pug-club.com/portal

Try and see if it works. Keep a backup of mainfile.php just in case.

HTH.

4
McDonald
Re: redirects to wrong place
  • 2005/10/31 10:02

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Check the file where your menu is defined, it's probably in theme.html.
Find the following line:

Quote:
class="menuTop" href="http://www.pug-club.com/portal/">Home


Try the following 2 changes to fix it:

Quote:
class="menuTop" href="http://www.pug-club.com/portal">Home


or

Quote:
class="menuTop" href="http://www.pug-club.com">Home

5
silverpug
Re: redirects to wrong place
  • 2005/10/31 13:09

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


Quote:

jdseymour wrote:
Not 100% sure as I cannot see you configuration file. But I am sure that in mainfile.php you have the subfolder /portal defined in the physical path. I would think that since it is defined physically it does not need to be included in the virtual path. So in mainfile.php the virtual path should be:

http://www.pug-club.com

Instead of:

http://www.pug-club.com/portal

Try and see if it works. Keep a backup of mainfile.php just in case.

HTH.


i have tried both things... both virtual and physical bath to make the www.pug-club.com ... When i changed the physical ofcourse it wouldn't work at all, when i changed the virtual nothing in the website would work, and i couldn't access the admin menu... So thanks for trying but unfortunately this didn't work...


Quote:

McDonald wrote:
Check the file where your menu is defined, it's probably in theme.html.
Find the following line:

Quote:
class="menuTop" href="http://www.pug-club.com/portal/">Home


Try the following 2 changes to fix it:

Quote:
class="menuTop" href="http://www.pug-club.com/portal">Home


or

Quote:
class="menuTop" href="http://www.pug-club.com">Home


Thanks but i cannot find such file.. What is the path of where i can find such a folder so i can try this and see if it works?

6
silverpug
Re: redirects to wrong place
  • 2005/10/31 13:22

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


Mcdonald i found a file in portal/themes/default/theme.html and that one had
<title><{$xooops_sitename}> - <{$xoops_pagetitle}></title>

is this the one i should have changed? cause i changed this one to

<title><www.pug-club.com/portal> - <{$xoops_pagetitle}></title>
and to
<title><www.pug-club.com/> - <{$xoops_pagetitle}></title>

and nothing happened...

where is the file you were talking about??

7
McDonald
Re: redirects to wrong place
  • 2005/10/31 16:29

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Quote:
Mcdonald i found a file in portal/themes/default/theme.html and that one had
<title><{$xooops_sitename}> - <{$xoops_pagetitle}></title>


No not that one, that one is for displaying the name of your website in the title bar of your browser.

More down you'll find where the menu items are defined.
It's approximately line 45. It also has a double // in the url what might cause the problem.

Quote:
class="menuTop" href="http://www.pug-club.com//portal/">Home

8
silverpug
Re: redirects to wrong place
  • 2005/10/31 19:16

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


i tried mate... there is not such file, and not such line in the same file.. i searched for "menuTop" for "Home" for "my website" and there is nothing in my theme.html file

No such line anywhere... Any other suggestions?

I should tell you that I am using an old version of xoops...2.0.7 version.. i think its pretty old isn't it?

9
McDonald
Re: redirects to wrong place
  • 2005/10/31 23:07

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I am not sure which file it is. Theme.html is just a guess.
If you log into your website and use the 'View source' option from your webbrowser (in IE right mousebutton click) you get a coded listing of your site in which you can see the code.
You should look for a html-file where you can find this code back.

What is the name of the theme you're using?

I think upgrading to a newer version of XOOPS is recommended...

10
silverpug
Re: redirects to wrong place
  • 2005/11/1 0:35

  • silverpug

  • Just popping in

  • Posts: 24

  • Since: 2004/6/8 7


i am using the normal theme.. the default...

My friend unfortunately i cannot find the html you are talking about.. i have seen that part of the code when i went to view/source code in explorer but i can't find the html to fix the problem...

too bad cause it sounded like a good guess...

Login

Who's Online

166 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits