Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 11:26 pm EST

Geeklog Forums

url.class.php hack?


Status: offline

Creator

Forum User
Full Member
Registered: 07/11/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: 01/12/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: 07/11/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: 01/12/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 EST. The time is now 11:26 pm.

  • 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