Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 22
stranger
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

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
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

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
You can do the same from the CP [7.2]:

CP / Tools & Info / PHP Info

Joined: Oct 2007
Posts: 22
stranger
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.
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
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.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)