|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
when I enable this option in the primary settings, I can't get past my portal page.. I click on forum list and it always takes me to the portal page.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Generally this will occur when your host doesn't allow the path_info php variable in the configuration.
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
oh wait.. I guess my server doesn't have path info enabled. will have to see if I can get them to do that.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
you beat me to the post....
any reason a host wouldn't enable that?
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Lack of configuration knowledge? Not sure, it's not really considered a security risk so I don't know why anyone wouldn't have it on...
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
I sent my host a request for it.. hopefully they won't give me any crap about enabling it.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Well, theres no harm in asking 
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
I would like to think that considering how long I have been with this host (12 years) that they would enable it as long as there is no valid security reason not to.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Well, true... Though a lot of hosts don't really care about their customers (which is a real shame, every client should be treated like family vs a payment)
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
my current host used to treat me better... when they first started up I was one of their first customers, the guy was running the business out of his house.. could call any time.. gave me his pager number if I ever needed something after hours..
he gave me extra storage space for free, helped me with scripts and other stuff... then he mysteriously died.. his wife took over, company moved its server farm to NY, and their customer service took a dive, but it seems to have improved again slowly... I have never had a problem with them that they weren't able to fix.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
this is the answer I was given... PATHINFO works fine, except there is a php bug with it.
If your using php, php breaks it, and you probably need to have it look for $_SERVER["ORIG_PATH_INFO"] also, instead of just $_SERVER["PATH_INFO"]
A search/replace should get it working.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
UBB.t7 I believe looks for orig_path_info as of ~7.3 so that isn't really it... You could try creating a phpinfo.php page: And then accessing it as: phpinfo.php/this/is/a/test Then looking for "this/is/a/test" in the result and seeing if it shows at all...
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
i am at work now and have limted access to the net, will have to wait till I get home to mess with it.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I thought we looked for ORIG_PATH_INFO as well, but it looks like not. But it's a quick change. Line 1310 of libs/ubbthreads.inc.php is where it needs to be changed:
$PATH_INFO = array_get($_SERVER, 'PATH_INFO', '');
Change to:
$PATH_INFO = array_get($_SERVER, 'ORIG_PATH_INFO', '');
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
thanx for looking into this Rick. will test it out this evening when I get home and let you know what happens.
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Really? I could have sworn you updated the code for that way way way back when...
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I was positive as well. However, I looked through the code and didn't find it. I think what happened is was the function was redone by Ian and he just forgot to add the check for ORIG_PATH_INFO back in.
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
that did the trick, spider friendly URLS are now working. Thanx!
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
I was positive as well. However, I looked through the code and didn't find it. I think what happened is was the function was redone by Ian and he just forgot to add the check for ORIG_PATH_INFO back in. It does make sense, he did a lot of updates for 7.3 so a small overlook would explain it...
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
this wont mess with your sitemap mod will it gizmo?
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
No, it doesn't actually use shortURLs at this point; just kind of shoves links down googles throats lol...
I'm going to likely be looking at the various shorturl options for a new version in the future...
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
ok, cool. good to know :-)
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Feb 2007
Posts: 36
newbie
|
newbie
Joined: Feb 2007
Posts: 36 |
What file is editted to turn on and off manually the enable spider friendly urls?
What do you have to alter within that file to do this?
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
It is a setting in the ubb control panel. cp>>Primary settings-Advanced.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Feb 2007
Posts: 36
newbie
|
newbie
Joined: Feb 2007
Posts: 36 |
Ruben, rather than the setting within the Control Panel, can I get the following information?
What file is editted to turn on and off manually the enable spider friendly urls?
What do you have to alter within that file to do this?
Thanks.
|
|
|
|
Joined: Feb 2007
Posts: 36
newbie
|
newbie
Joined: Feb 2007
Posts: 36 |
Is it all within the ubbthreads.inc.php file?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
The file itself is the includes/config.inc.php. You're looking for SEARCH_FRIENDLY_URLS
When it's set to 1, it's turned on. When it's set to 0 it's off.
|
|
|
|
Joined: Feb 2007
Posts: 36
newbie
|
newbie
Joined: Feb 2007
Posts: 36 |
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
Have not looked at what line or name it has in the file but it should be stored in config.inc.php
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
1 members (Gizmo),
103
guests, and
103
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|