Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 10:48 am EST

Geeklog Forums

Custom URL Rewrites


Jeff

Anonymous
Is there a way I can aske the rewrite custom, I have it turne on but instead of displaying the UID I want it to display something like,
http://www.thedailycynic.com/music-news-4

instead of:

http://www.thedailycynic.com/article.php/20040506062048220

Thanks

Jeff
Music News
 Quote

Status: offline

mattmcal

Forum User
Newbie
Registered: 08/18/04
Posts: 3
I'm looking for this solution, too. Anyone resolve it yet?
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
I've asked this a few times too. Hopefully that will be something that makes it's way into GeekLog2.
www.antisource.com
 Quote

The Realistic

Anonymous
But then you'll have to come up with a name any time you publish an article!
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Quote by The Realistic: But then you'll have to come up with a name any time you publish an article!


The new field would only be optional, if you enable the Descriptive URL Rewrite in the config file. If someone leaves this field blank, geeklog would just replace it with the normal ID.
www.antisource.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Jeff:
http://www.thedailycynic.com/music-news-4

instead of:

http://www.thedailycynic.com/article.php/20040506062048220


If you can live with

http://www.thedailycynic.com/article.php/music-news-4

that will be possible in Geeklog 1.3.10.

bye, Dirk
 Quote

Status: offline

Remdotc

Forum User
Chatty
Registered: 06/12/02
Posts: 55
I think this is the biggest and most requested feature from the Geeklog team.

You could look at mod_rewrite for geeklog http://modrewrite.gldir.com/
it wont give you exactly what you are looking for, as you will have to do some mod_rewrite magic per story if you really want what you desire.

Personally I would love to see geeklog2 do the following

instead of http://www.foo.bar/article.php/20040506062048220

pass your article to a preprocessor before comBuildURL
in the Admin section have three options
1. Default Output
2. Dynamic Output (as Static pages plugin, wrapped inside a topic ID)
3. As HTML

The result would be you could have
http://www.foo.bar/article.php/20040506062048220
or
http://www.foo.bar/YourTopicName/20040506062048220/TitleName
or
http://www.foo.bar/topicName/html/Titlename.html

I know the GL Developers will grown at that, but I believe it can be done, and done correctly without the need of mod_rewrite
 Quote

Status: offline

RickW

Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
Quote by RickW:
Quote by The Realistic: But then you'll have to come up with a name any time you publish an article!


The new field would only be optional, if you enable the Descriptive URL Rewrite in the config file. If someone leaves this field blank, geeklog would just replace it with the normal ID.



www.antisource.com
 Quote

All times are EST. The time is now 10:48 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