FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » PATH_INFO style URLs?
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
PATH_INFO style URLs? [message #163464] Tue, 02 November 2010 10:35 Go to next message
newbit is currently offline  newbit   China
Messages: 29
Registered: November 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
To make use of this you will also need to create a new template based on the 'path_info' template set.

How is this done, exactly? Can someone give me a 1, 2, 3 kind of instruction? I'm sure to developers and experienced users, this kind of thing is child's play. "Oh, of course! Create a new template. Duuuuuuh!" But to me, a person who started using FUDforum yesterday, this is a mystery. How do I *make this happen*? I must have SEO-friendly URLs.
icon6.gif  Re: PATH_INFO style URLs? [message #163475 is a reply to message #163464] Tue, 02 November 2010 22:42 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
newbit wrote on Tue, 02 November 2010 09:35
To make use of this you will also need to create a new template based on the 'path_info' template set.
How is this done, exactly? Can someone give me a 1, 2, 3 kind of instruction? I'm sure to developers and experienced users, this kind of thing is child's play. "Oh, of course! Create a new template. Duuuuuuh!" But to me, a person who started using FUDforum yesterday, this is a mystery. How do I *make this happen*? I must have SEO-friendly URLs.


Admin Control Panel > Template Editor > Create custom template set:

http://cvs.prohost.org/index.php/Template_Editor
http://cvs.prohost.org/index.php/Theme_Manager


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #163476 is a reply to message #163464] Wed, 03 November 2010 01:07 Go to previous messageGo to next message
newbit is currently offline  newbit   China
Messages: 29
Registered: November 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hm, a reference to RTFM isn't really what I had in mind. A 1,2,3 type of instruction would be most helpful. I've read the pages already, and it doesn't say how to *accomplish tasks* with the software. It merely provides instruction useful to programmers. Things such as "{VAR-HTML: var_key} PHP variable that will be encoded using htmlspecialchars() function." are not what I was looking for.
Re: PATH_INFO style URLs? [message #163477 is a reply to message #163476] Wed, 03 November 2010 05:23 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Hint, use CTRL+F and enter these keywords in your browser to quicker find the links! - Link names supplied in english.

Admin Control Panel -> Global settings manager
locate the option "Use PATH_INFO style URLs"
Set to "Yes"

Admin Control Panel -> Theme Manager

Under "Add New Theme:" enter a Theme name and in the drop down menu called "Template set" use the drop down menu to chose path_info

Check the little box called "default"

then click add.


Re: PATH_INFO style URLs? [message #163507 is a reply to message #163477] Thu, 04 November 2010 00:04 Go to previous messageGo to next message
newbit is currently offline  newbit   China
Messages: 29
Registered: November 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Huh. I did exactly that, and I am still getting URLs of the type /index.php/f/1/0/fcdf68a6db908ed50d72ec3c14d56b70/. The webserver is Apache. Here's a screenshot of the admin area. If anyone wants to check it out, the site is at http://ningboforums.com/fudforum/, use admin/admin to get in.

http://ningboforums.com/Untitled-1.jpg

[Updated on: Thu, 04 November 2010 00:08]

Report message to a moderator

Re: PATH_INFO style URLs? [message #163514 is a reply to message #163507] Thu, 04 November 2010 05:10 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
You are getting the /ffcdf68a6db908ed50d72ec3c14d56b70/ part because that is the session variable passed via URL
Try to disable "Enable URL sessions:" in your global settings.

To get rid of index.php in the URL you have to tweak your htaccess file to rewrite an apache rule, see the wiki for details.


Re: PATH_INFO style URLs? [message #163517 is a reply to message #163514] Thu, 04 November 2010 06:02 Go to previous messageGo to next message
newbit is currently offline  newbit   China
Messages: 29
Registered: November 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks so much! Another setting I wouldn't have known to change in a million years. Now I have URLs like /index.php?t=msg&th=1&start=0&rid=2. Is this good enough for Google? I remember seeing URLs like /1/5/8 somewhere in the docs.
Re: PATH_INFO style URLs? [message #163535 is a reply to message #163517] Fri, 05 November 2010 04:37 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
/index.php?t=msg&th=1&start=0&rid=2 is bad (not path_info)
/index.php/f/1/0/ is good (path_info)

In reality it doesn't matter much to be honest. Google is very smart. It sees all!


Re: PATH_INFO style URLs? [message #164060 is a reply to message #163535] Sun, 02 January 2011 09:46 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
Ernesto wrote on Fri, 05 November 2010 03:37
/index.php?t=msg&th=1&start=0&rid=2 is bad (not path_info)
/index.php/f/1/0/ is good (path_info)

In reality it doesn't matter much to be honest. Google is very smart. It sees all!


Despite the test always saying path info would work, every time I tried in the past it failed, with ver 3.0.2 for the 1st time ever I've been able to actually get Path info themes to work.

Now, Not only do they work they work exceptionally well!



"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164062 is a reply to message #164060] Sun, 02 January 2011 10:40 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3628
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Strange, I've been using PATH_INFO without problems on all my sites.

I wonder what the implications would be if we enable it by default (new installs)? It may not work with non-Apache web servers...
Re: PATH_INFO style URLs? [message #164065 is a reply to message #164062] Sun, 02 January 2011 11:27 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
naudefj wrote on Sun, 02 January 2011 09:40
Strange, I've been using PATH_INFO without problems on all my sites.

I wonder what the implications would be if we enable it by default (new installs)? It may not work with non-Apache web servers...

I can almost guarantee that making "Path_info" default on new installs would mean problems particularly for people like me who don't have anywhere near your knowledge!

Perhaps you could do a test release or an optional release?

The wiki and blog for one of my hosts states in part about their servers Quote:
"'Apache HTTP Server''' is an open source HTTP web server for UNIX commands Host customers have only limited access to Apache settings. Certain options can be changed through the control panel


I have used this Host since 2006 and continuously ran FUDforums on it but only today have I been able to use Path, even though the test has always said I could! On the other host I use the test always failed.

Go figure!


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164067 is a reply to message #164065] Sun, 02 January 2011 11:36 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3628
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
The Witcher wrote:
I can almost guarantee that making "Path_info" default on new installs would mean problems particularly for people like me who don't have anywhere near your knowledge!


I thinking more in the line of automated testing to see if it can be enabled, and if so, do it.
Not entirely sure if it would be possible though.
Re: PATH_INFO style URLs? [message #164222 is a reply to message #164067] Tue, 11 January 2011 18:04 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
If there is a way I'm sure you will find it.

Looks to me as though in order to make it automated there will need to be some changes in the themes to include path_info themes not based on default.



"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164263 is a reply to message #163514] Mon, 17 January 2011 07:28 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
Ernesto wrote on Thu, 04 November 2010 04:10
You are getting the /ffcdf68a6db908ed50d72ec3c14d56b70/ part because that is the session variable passed via URL
Try to disable "Enable URL sessions:" in your global settings.

To get rid of index.php in the URL you have to tweak your htaccess file to rewrite an apache rule, see the wiki for details.




If this is true, should it not be stated in the admin panel?

As in:Quote:
Enable URL sessions:
Allow session ids to be passed not only via cookies but, via URL variables, not recommended for use with Path_info URL's




"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164264 is a reply to message #164263] Mon, 17 January 2011 08:58 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3628
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Contrary, for best security it's probably recommended to keep it enabled.
Re: PATH_INFO style URLs? [message #164265 is a reply to message #164264] Mon, 17 January 2011 09:29 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
naudefj wrote on Mon, 17 January 2011 07:58
Contrary, for best security it's probably recommended to keep it enabled.

So urls such as:

http://amyforum.net/index.php/i/b0ddacacbcd7ac3bb459b2d8d21fe3d9/
http://amyforum.net/index.php/f/4/b0ddacacbcd7ac3bb459b2d8d21fe3d9/
http://amyforum.net/index.php/t/154/0f02ec5522b8308b18bb5cef323edcce/
and
http://amyforum.net/index.php?t=msg&th=489&goto=541&0f02ec5522b 8308b18bb5cef323edcce/#msg_541


Would be acceptable path info urls then? particularly from a security standpoint, however if security were not an issue then disabling "URL sessions" so URL's appear as /index.php/f/1/0/ would be better since they are easier to remember and are more search engine friendly.


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164274 is a reply to message #164265] Mon, 17 January 2011 22:05 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
I just think it creates horrible links and annoys the endusers if they wanna copy the links. Not certain how it would be safer in any way to use it, passing sessions IDs via GET instead of POST etc.

I wouldn't recommend to have it turned on, no matter what.



Re: PATH_INFO style URLs? [message #164276 is a reply to message #164274] Mon, 17 January 2011 22:28 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3628
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Well, it's an additional layer of security, isn't it?
Anyway, I agree that it should be disabled in for new installations.
Re: PATH_INFO style URLs? [message #164280 is a reply to message #164276] Tue, 18 January 2011 07:25 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
naudefj wrote on Mon, 17 January 2011 21:28
Well, it's an additional layer of security, isn't it?
Anyway, I agree that it should be disbaled in for new installations.

I assume you meant disabled?

So the consensus is that it provides some measure of added security but annoys users who want to copy links (and Admins who want the best of everything without totally understanding) so it should be disabled (dropped from future versions)?



"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164290 is a reply to message #164280] Tue, 18 January 2011 22:28 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
No that is not what he meant at all. Try again!

Re: PATH_INFO style URLs? [message #164297 is a reply to message #164290] Wed, 19 January 2011 05:02 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 662
Registered: May 2009
Location: USA
Karma: 2
Senior Member
add to buddy list
ignore all messages by this user
Ernesto wrote on Tue, 18 January 2011 21:28
No that is not what he meant at all. Try again!
????


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: PATH_INFO style URLs? [message #164300 is a reply to message #164297] Wed, 19 January 2011 05:08 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3628
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
This setting will be disabled in future versions (not removed) Wink

Administrators that need this functionality will still be able to enable it from the ACP.
Re: PATH_INFO style URLs? [message #168397 is a reply to message #164300] Fri, 26 April 2013 00:29 Go to previous messageGo to next message
cpreston is currently offline  cpreston   United States
Messages: 160
Registered: June 2012
Location: Oceanside
Karma: 6
Senior Member
add to buddy list
ignore all messages by this user
You're referring to the PATH_INFO setting being off by default, right?
Re: PATH_INFO style URLs? [message #168399 is a reply to message #168397] Fri, 26 April 2013 01:48 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3628
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
cpreston wrote on Fri, 26 April 2013 06:29
You're referring to the PATH_INFO setting being off by default, right?


It's referring to the "URL sessions" setting.
Since its introduction, PATH_INFO have never been enabled by default.
Re: PATH_INFO style URLs? [message #168400 is a reply to message #168399] Fri, 26 April 2013 03:48 Go to previous message
cpreston is currently offline  cpreston   United States
Messages: 160
Registered: June 2012
Location: Oceanside
Karma: 6
Senior Member
add to buddy list
ignore all messages by this user
Gotcha. Thx!
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Why store messages in text files?
Next Topic: Can't make a forum datadump
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Dec 11 02:46:48 EST 2017

Total time taken to generate the page: 0.01113 seconds