Welcome to Geeklog Monday, October 25 2021 @ 12:38 am EDT

Geeklog Forums

url.class.php hack?


Status: offline

Creator

Forum User
Full Member
Registered: 11/07/02
Posts: 181
Location:Austin, TX
Hi - I was wondering if it was possible to hack the file url.class.php to slightly change the way GeekLog rewrite urls. For example, I don't want it to diplay the .php extension so that the following URL:

http://www.justrage.com/article.php/some_article

Would instead be shown as:

http://www.justrage.com/article/some_article

And things like:

http://www.justrage.com/index.php?topic=WorkWrath

Would instead be like:

http://www.justrage.com/index?topic=WorkWrath

Or even better

http://www.justrage.com/WorkWrath

So is it possible, and if so, what is the code? :-)
L. Whitworth
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
No, that's not possible. You will have to use "real" server-side URL rewriting for this, e.g. in Apache.

bye, Dirk
 Quote

Status: offline

Creator

Forum User
Full Member
Registered: 11/07/02
Posts: 181
Location:Austin, TX
And by that you mean .htaccess magic?

If so then what would the command line be? I've scoured the 'net but haven't found anything like it...
L. Whitworth
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
You Google-Fu is weak Mr. Green

Apache 1.3 URL Rewriting Guide

bye, Dirk
 Quote

All times are EDT. The time is now 12:38 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content