Previous Thread
Next Thread
Print Thread
Hop To
Spider Friendly URL's - How do I? #201542 11/16/2007 2:41 PM
Joined: Oct 2007
Posts: 22
OneLung50 Offline OP
stranger
OP Offline
stranger
Joined: Oct 2007
Posts: 22
In the Primary Settings section of my Control Panel, it says, "Note: The PATH_INFO environmental variable must be available for this feature to function properly."

Could someone please explain to me how to make this variable available (or active) so Google can spider my forum.

I host on godaddy.com using Apache OS, PHP 4.3.11 and SQL 5.0.

I have a php.ini file in my root folder, but don't have any .htaccess file.

Thank you very much!

Daniel

Re: Spider Friendly URL's - How do I? [Re: OneLung50] #201547 11/16/2007 2:51 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
i'll bet its available already for you.

just create a 1 liner program called : muhaha.php
PHP Code

<?php echo $_SERVER['PATH_INFO']; ?>



and upload to your root.. then point to it like http://yourdomain.com/muhaha.php

it will --probably-- echo a unix-ie path like /home/bla/public_html or whatever..

if so, you can do the happy dance. then you just turn on spider friendlies in your cpanel and let it rip.

keep in mind that google can only spider your forums that are OPEN to guests as readable.. any private forums can't be spidered, since a login wouild be required wink

ps: phpinfo(); also tells you about this and MORE.. so choose your poison smile

Re: Spider Friendly URL's - How do I? [Re: SD] #201548 11/16/2007 3:04 PM
Joined: Dec 2006
Posts: 1,236
ScriptKeeper Offline
veteran
Offline
veteran
Joined: Dec 2006
Posts: 1,236
You can do the same from the CP [7.2]:

CP / Tools & Info / PHP Info

Re: Spider Friendly URL's - How do I? [Re: ScriptKeeper] #201552 11/16/2007 3:22 PM
Joined: Oct 2007
Posts: 22
OneLung50 Offline OP
stranger
OP Offline
stranger
Joined: Oct 2007
Posts: 22
Hi,

Thanks for the help.

When I activate the checkbox for spider friendly URL's, the forum crashes. I created the php file as you instructed and it doesn't echo anything. Just a blank page at http://www.onelung.net/muhaha.php .

Is there a way I can activate the PATH_INFO variable in Apache?

Thanks,

Daniel.


If you're 20 and not a Liberal, you have no heart. But if you're 40 and still a Liberal, you have no brain.
Re: Spider Friendly URL's - How do I? [Re: ScriptKeeper] #201555 11/16/2007 3:38 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
Originally Posted by ScriptKeeper
You can do the same from the CP [7.2]:

CP / Tools & Info / PHP Info


^^ better idea than mine laugh

as to activating it, i usually slam it into my .htaccess file

"AcceptPathInfo On"

your mileage may vary with your flavor of apache though.

Re: Spider Friendly URL's - How do I? [Re: SD] #201577 11/16/2007 7:19 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
BTW, the path info on a blank phpinfo will show nothing of value, you must access it as:
file.php/this/is/a/test

Then search the output for "this/is/a/test"

As for enabling the option if it isn't available, this must be done through your webhost and is a simple update for them to do, however will prove impossible if they're not willing to update it for you.

(all they have to do is add 'AcceptPathInfo On' to the apache configuration for your website)

You can sometimes get away with adding the variable to a .htaccess file, though that assumes several things:
1. The webhost has granted you access to do so (which if they don't grant you access to have AcceptPathInfo on in the first place, it's doubtful they've given your account the override "FileInfo" permission.
2. you how how to edit an existing .htaccess file without b0ging it.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Spider Friendly URL's - How do I? [Re: Gizmo] #201579 11/16/2007 7:24 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
BTW, I doubt this is enabled on your server, as I get a "not found" error (no input file specified), when I access it as such:
http://www.onelung.net/muhaha.php/this/is/a/test

It should just show:
/this/is/a/test

You can see what it SHOULD look like http://home.corthell.net/path_info.php/this/is/a/test


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Spider Friendly URL's - How do I? [Re: SD] #218392 10/24/2008 8:31 PM
Joined: Mar 2007
Posts: 244
ECNet Offline
Enthusiast
Offline
Enthusiast
Joined: Mar 2007
Posts: 244
Originally Posted by Sirdude
i'll bet its available already for you.

just create a 1 liner program called : muhaha.php
PHP Code

<?php echo $_SERVER['PATH_INFO']; ?>



and upload to your root.. then point to it like http://yourdomain.com/muhaha.php

it will --probably-- echo a unix-ie path like /home/bla/public_html or whatever..

if so, you can do the happy dance. then you just turn on spider friendlies in your cpanel and let it rip.

I've done this and get the following:

/muhaha.php

Does that mean that Path_Info is enabled?
I ask because the host says it is, but when I turn on the Spider-Friendly setting the Forum links produce 404 errors.

Some History:
The Forum was originally on another server, and the spider-friendly setting worked fine. My previous Host moved the website w/forum to a new host/server for me. After a few days I noticed that some Bookmarks and links didn't work and found the setting was off.

Are there any other reasons why the spider-friendly urls wouldn't work?
Or is there something additional that might have to be done?

Bill


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
UBB Dev
by JAISP - 11/03/2019 11:01 AM
Who's Online Now
1 registered members (isaac), 90 guests, and 440 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)