Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
rUFUs
Goto page Previous  1, 2
 
Reply to topic    Forum Index » General feedback View previous topic
View next topic
rUFUs
Author Message
BadDog



Joined: 21 Nov 2005
Posts: 62

Post Reply with quote
This is really server specific with the rewrites. I swithched to apache under Windows and had improvement with handling the rUFUs, though I had to force a "?" to get it to work in the cute_get_link function under windows. Under my linux and apache server these rUFUs work without a problem. So I don't know, I suppose you can guard against this annoying issue by making a option to force CuteNews.RU to force insert the calling script like this in functions.inc.php:



return $url['scheme'].'://'. $url['host'] .($url['port'] ? ':'.$url['port'] : ''). '/index.php?/'.$result;
Fri Nov 25, 2005 10:53 pm View user's profile Send private message
Guest








Please login to hide the ads.

Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
Last night I finally managed to set up the user friendly urls exactly how I want it. It's quite simple actually, just read this article: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html and I'm sure you figure it out..



My .htaccess file

Code:
DirectoryIndex index.php



# [user htaccess]





<IfModule mod_rewrite.c>

RewriteEngine On

#Options +FollowSymlinks

#RewriteBase /



# [config] rufus

RewriteRule ^yes(/?)+$ /cms/config.php [QSA,L]

# [home] post

RewriteRule ^([0-9]{4})/([0-9]{2})/(none|nieuws|updates|columns|interviews|review|records|fmdownloads|forums|challenge)/([_0-9a-z-]+).html(/?)+$ /nieuws.php?year=$1&month=$2&category=$3&title=$4 [QSA,L]

# [home] post

RewriteRule ^([0-9]{4})/([0-9]{2})/(fm-2005-club-gidsen|fm-2005-hulp-gidsen|fm-2005-competitie-gidsen|fm-2005-informatie-gidsen|fm-2006-club-gidsen|fm-2006-competitiegidsen|fm-2006-hulp-gidsen)/([_0-9a-z-]+).html(/?)+$ /gidsen.php?year=$1&month=$2&category=$3&title=$4 [QSA,L]

# [home] post

RewriteRule ^([0-9]{4})/([0-9]{2})/(tactiek|tactiek-van-de-maand)/([_0-9a-z-]+).html(/?)+$ /tactieken.php?year=$1&month=$2&category=$3&title=$4 [QSA,L]

# [home] post

RewriteRule ^([0-9]{4})/([0-9]{2})/(fm2006-keepers|fm2006-verdedigers|fm2006-middenvelders|fm2006-aanvallers|spelersdb-keepers|spelersdb-verdedigers|spelersdb-middenvelders|spelersdb-aanvallers|speler-van-de-week)/([_0-9a-z-]+).html(/?)+$ /spelers.php?year=$1&month=$2&category=$3&title=$4 [QSA,L]

# [home] dosearch

RewriteRule ^search(/?)+$ ?do=search [QSA,L]

# [home] docategory

RewriteRule ^category(/?)+$ ?do=category [QSA,L]

# [home] category

RewriteRule ^category/(fm2006-keepers|fm2006-verdedigers|fm2006-middenvelders|fm2006-aanvallers|spelersdb-keepers|spelersdb-verdedigers|spelersdb-middenvelders|spelersdb-aanvallers|speler-van-de-week)(/?)+$ /spelers.php?category=$1 [QSA,L]

# [home] category

RewriteRule ^category/(tactiek|tactiek-van-de-maand)(/?)+$ /tactieken.php?category=$1 [QSA,L]

# [home] category

RewriteRule ^category/(fm-2005-club-gidsen|fm-2005-hulp-gidsen|fm-2005-competitie-gidsen|fm-2005-informatie-gidsen|fm-2006-club-gidsen|fm-2006-competitiegidsen|fm-2006-hulp-gidsen)(/?)+$ /gidsen.php?category=$1 [QSA,L]

# [home] category

RewriteRule ^category/(nieuws|updates|columns|interviews|review|records|forums|challenge)(/?)+$ /nieuws.php?category=$1 [QSA,L]

# [home] category

RewriteRule ^category/(none)(/?)+$ /index.php?category=$1 [QSA,L]

# [home] category

RewriteRule ^category/(fmdownloads)(/?)+$ /downloads/pafiledb.php [R]

# [home] dousers

RewriteRule ^users(/?)+$ ?do=users [QSA,L]

# [home] user

RewriteRule ^users/([_0-9a-z-]+).html(/?)+$ ?user=$1&do=users [QSA,L]

# [home] doarchives

RewriteRule ^archives(/?)+$ ?do=archives [QSA,L]

# [home] day

RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$ ?year=$1&month=$2&day=$3 [QSA,L]

# [home] month

RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ ?year=$1&month=$2 [QSA,L]

# [home] year

RewriteRule ^([0-9]{4})(/?)+$ ?year=$1 [QSA,L]

# [rss] post

RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).xml(/?)+$ /cms/rss.php?year=$1&month=$2&day=$3&title=$4 [QSA,L]

# [rss] user

RewriteRule ^users/([_0-9a-z-]+).xml(/?)+$ /cms/rss.php?user=$1 [QSA,L]

# [rss] feed

RewriteRule ^rss.xml(/?)+$ /cms/rss.php [QSA,L]

# [print] post

RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).phtml(/?)+$ /cms/print.php?year=$1&month=$2&day=$3&title=$4 [QSA,L]

# [trackback] post

RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).tb(/?)+$ /cms/trackback.php?year=$1&month=$2&day=$3&title=$4 [QSA,L]

</IfModule>




My urls.ini file

Code:
[config]

rufus = "yes"



[home]

post = "{year}/{month}/{category}/{title}.html"



dosearch = "search{add:do=search}"



docategory = "category{add:do=category}"

category = "category/{categories}"



dousers = "users{add:do=users}"

user = "users/{user:do=users}.html"



doarchives = "archives{add:do=archives}"



day = "{year}/{month}/{day}"

month = "{year}/{month}"

year = "{year}"



[rss]

post = "{year}/{month}/{day}/{title}.xml"

category = "category/{categories}/rss.xml"

user = "users/{user}.xml"

feed = "rss.xml"



[print]

post = "{year}/{month}/{day}/{title}.phtml"



[trackback]

post = "{year}/{month}/{day}/{title}.tb"




The only thing i haven't figured out yet is how to add a search box on the main page.



So that it show like this..






Last edited by Ramon on Tue Feb 21, 2006 2:13 am; edited 1 time in total
Wed Feb 15, 2006 2:56 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
So you edited the file manually or how did you manage to have it "[home] post" 4 times?
Wed Feb 15, 2006 7:01 pm View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
I just editted it myself, I figured if there was a way of using different pages for different categories this would be the one. And I was right Smile
Wed Feb 15, 2006 7:32 pm View user's profile Send private message Visit poster's website
FolX



Joined: 03 Mar 2006
Posts: 13

Post Reply with quote
Can someone explain it again? I dont get it.



Now I have http://yoursite.com/news/example/article.html



and want it like this

http://yoursite.com/article.html



I have tried the second post in this topic from DiGiTAL but not work for me.
Fri Mar 03, 2006 3:43 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Right now, your news page is in the example folder inside the cutenews directory: yoursite.com/example/index.php



Just put your news page in the root folder of your domain and change "Path to main page" in "System settings" to this path. yoursite.com/index.php
Sat Mar 04, 2006 4:27 pm View user's profile Send private message
FolX



Joined: 03 Mar 2006
Posts: 13

Post Reply with quote
I did what you say but dont work...

get a 404 error, page not exist

Crying or Very sad
Sat Mar 04, 2006 11:27 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Please give us or me (PM) a link to your page. Smile
Sun Mar 05, 2006 11:33 pm View user's profile Send private message
hmirs



Joined: 29 Mar 2006
Posts: 1

Post Reply with quote
My server do not suport mod_rewrite.so.



What can I do ?
Wed Mar 29, 2006 6:43 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Go to Options -> User Friendly Urls and replace everything with this:

Code:
[home]

post = "?id={id}"



category = "?category={category-id}"



user = "?user={user}&do=users"



day = "?year={year}&month={month}&day={day}"

month = "?year={year}&month={month}"

year = "?year={year}"



[rss]

post = "?id={id}"

category = "?category={category-id}"

user = "?user={user}"

feed = "?"



[print]

post = "?id={id}"



[trackback]

post = "?id={id}"

Wed Mar 29, 2006 7:07 pm View user's profile Send private message
tamilsuriyan



Joined: 08 Apr 2006
Posts: 14
Location: Germany

Post Reply with quote
mod_rewrite is not supporting in my server too, but I can't the User Friendly Urls like you post here! It's not working too.
Tue Apr 11, 2006 9:31 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
What did you do exactly? On your page the links are still wrong.



They are supposed to be like this: http://tamilan.ta.funpic.de/test1/example/index.php?id=1



This way they are working.
Wed Apr 12, 2006 10:40 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » General feedback All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
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 can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.