Need to know (RewriteRule)
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Need to know (RewriteRule)
Posted: Wed Nov 11, 2009 8:33 pm
Reply with quote

Hello

I hope that I shall not trouble with all my questions.

But I would like to do Jokes modules on the display url in url rewrite instead of www.mysite.com/Jokes/j...=desc.html the shows www.mysite.com/Jokes/jokename.html and I've tried to rewrite the rule in .htaccess file but I know that missing some more .. Is there anyone who can help me or give examples of how it can be made.

I would be grateful for all your help


dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
xp/2.0.1/5.0.45/4.4.7/9.2
Back to top
View user's profile
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: Need to know (RewriteRule)
Posted: Wed Nov 11, 2009 9:05 pm
Reply with quote

Something like :

RewriteCond %{REQUEST_URI} /Jokes/
RewriteRule ^Jokes/(.*)$ index.php?name=Jokes&jid=$1 [L,S=7]


dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
xp/2.0.1/5.0.45/4.4.7/9.2
Back to top
View user's profile
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: Need to know (RewriteRule)
Posted: Thu Nov 12, 2009 12:24 am
Reply with quote

jokename not joke id? Is there any way joke can be accessed by name in the url at the moment? (something like ?joketitle=jokename or whatever).

To have such rewrite, there has to be such php alternative already.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
dadki
Heavy poster


Joined: Dec 17, 2007
Posts: 158

PostPost subject: Re: Need to know (RewriteRule)
Posted: Thu Nov 12, 2009 2:53 pm
Reply with quote

Eestlane wrote:
jokename not joke id? Is there any way joke can be accessed by name in the url at the moment? (something like ?joketitle=jokename or whatever).

To have such rewrite, there has to be such php alternative already.


I have also tried it and have actually been looking into the module Jokes on name for extraction of jokes names but could not find anything that could detect it when I have to rewrite them in the url. Also with php alternative.

Can you help me with this?

RewriteCond %{REQUEST_URI} /Jokes/
RewriteRule ^Jokes/(.*)$ index.php?name=Jokes&jokename=$1 [L,S=7]


dadki's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
xp/2.0.1/5.0.45/4.4.7/9.2
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.2681 seconds with 19 DB Queries in 0.0346 seconds
Memory Usage: 2.88 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy