Spider Friendly URL's - How do I?
#201542
11/16/2007 2:41 PM
|
Joined: Oct 2007
Posts: 22
OneLung50
OP
stranger
|
OP
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
Former Developer
|
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 echo $_SERVER['PATH_INFO']; ?>
and upload to your root.. then point to it like http://yourdomain.com/muhaha.phpit 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  ps: phpinfo(); also tells you about this and MORE.. so choose your poison 
|
|
|
Re: Spider Friendly URL's - How do I?
[Re: SD]
#201548
11/16/2007 3:04 PM
|
Joined: Dec 2006
Posts: 1,236
ScriptKeeper
veteran
|
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
OP
stranger
|
OP
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
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,938 |
You can do the same from the CP [7.2]:
CP / Tools & Info / PHP Info ^^ better idea than mine  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
|
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.
|
|
|
Re: Spider Friendly URL's - How do I?
[Re: SD]
#218392
10/24/2008 8:31 PM
|
Joined: Mar 2007
Posts: 244
ECNet
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 244 |
i'll bet its available already for you. just create a 1 liner program called : muhaha.php
<?php echo $_SERVER['PATH_INFO']; ?>
and upload to your root.. then point to it like http://yourdomain.com/muhaha.phpit 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
|
|
|
|
|
|
|
UBB Dev
by JAISP - 11/03/2019 11:01 AM
|
|
1 registered members (isaac),
90
guests, and 440
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|