caterham, could you resolve this problem?

Discuss practical ways rearrange URLs using mod_rewrite.

caterham, could you resolve this problem?

Postby abud » Fri Apr 15, 2005 9:22 am

Caterham, thank you for your help in the last.

Now my site SE friendly, that's working good.

But, I have one problem in my site, when I click next page for topic

" Go to page 1, 2, 3, ....,next "

my page couldn't redirect to next page

This is my code at .htacces
RewriteRule ^ f([0-9]*)-mercedes-benz-forum.*&topicdays=([0-9]*)&start=([0-9]*) viewforum.php?f=$1&topicdays=$2&start=$3




But when I click next page for post, that's working good
this is my code
RewriteRule ^t([0-9]*)-mercedes-benz-forum.*&postdays=([0-9]*)&postorder=([a-z]*)&start=([0-9]*) viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4



I have seen at http://www.modrewrite.de/foren/forum1.html
he can go to next page topic with URl :
http://www.modrewrite.de/foren/forum1-50.html
http://www.modrewrite.de/foren/forum1-100.html
..........................................................................


the problem in my site the same with this site:
http://rasputinj.com/forum2/forum2.html (check it out)
when you click next page, it couldn't redirect.

could you give me "the correct rewrite url" for next topic?


Thank you very much caterham.

Regards,
Abud
abud
 
Posts: 6
Joined: Mon Apr 04, 2005 12:07 am
Location: jakarta

Postby Caterham » Sun Apr 17, 2005 2:29 pm

try
Code: Select all
RewriteRule ^forum2\.html(&.+) viewforum.php?f=$1$2  [L]


RewriteRule ^f([0-9]*)-mercedes-benz-forum\.htm(&.+) viewforum.php?f=$1$2
I have seen at http://www.modrewrite.de/foren/forum1.html
he can go to next page topic with URl :
http://www.modrewrite.de/foren/forum1-50.html
http://www.modrewrite.de/foren/forum1-100.html
..........................................................................
Yes, this is an other mod from http://www.phpbb.de/viewtopic.php?t=44090 , but anyway, the posted rules there for .htaccess files are not efficient (using a Condition+Rule, but it can be done without the condition).

take a look there on
4. Ausblenden der Session ID für unregistrierte Benutzer
to remove the session ID from the URL for guests (i.e. search engines)

In /includes/sessions.php, search for
$SID = 'sid=' . $session_id;
and replace with
Code: Select all
if ( $userdata['session_user_id'] != ANONYMOUS || $userdata['session_page'] == -4 ){
   $SID = 'sid=' . $session_id;
} else {
   $SID = '';
}
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm

Postby abud » Mon Apr 18, 2005 11:35 am

well

Code to remove the session ID from the URL for guests working good in my site, thank you.
if ( $userdata['session_user_id'] != ANONYMOUS || $userdata['session_page'] == -4 ){
$SID = 'sid=' . $session_id;
} else {
$SID = '';
}



What do I need to add this?
http://www.phpbb.com/kb/article.php?article_id=29



About
go to next page topic
I still can't redirect to next page?

caterham,what do you think?if I use this: www.domain.com/viewforum.php?f=...topicdays=...start... (just for the link to next page).
and other link still
www.m-benzforum.com/f..mercedes-benz-forum.....
is my site still search engine friendly?


Thank you caterham
Abud
abud
 
Posts: 6
Joined: Mon Apr 04, 2005 12:07 am
Location: jakarta


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 25 guests

cron