Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Tuesday, May 21 2013 @ 07:55 PM EDT


 Forum Index > Extensions > Cool Hacks New Topic Post Reply
 url.class.php hack?
   
Creator
 06/20/05 01:00PM (Read 2157 times)  
+++++
Full Member

Status: offline


Registered: 07/11/02
Posts: 181
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
 
Profile Email Website
 Quote
Dirk
 06/20/05 02:04PM  
AAAAA
Admin

Status: offline


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

bye, Dirk

 
Profile Email Website
 Quote
Creator
 06/21/05 01:39AM  
+++++
Full Member

Status: offline


Registered: 07/11/02
Posts: 181
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
 
Profile Email Website
 Quote
Dirk
 06/21/05 02:00AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
You Google-Fu is weak

Apache 1.3 URL Rewriting Guide

bye, Dirk

 
Profile Email Website
 Quote
Content generated in: 3.24 seconds
New Topic Post Reply

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