| :: |
| Author |
Message |
carfieldily
Joined: 31 Mar 2008 Posts: 7
|
Posted: Tue Apr 01, 2008 9:58 am Post subject: Another question about rewrite mod and zero dupe |
|
|
I have a forum and it worked for some days, so there were some posts in it.
Yesterday, I installed the rewrite mod(advanced), and I found all links didn't work, so I install the zero dupe(simple).
But it seemed that this didn't work either.
Does only zero dupe(advanced) work with the rewrite mod(advanced)?
Should I install zero dupe before installing the rewrite mod?
Thank you very much. |
|
|
| Back to top |
|
 |
|
 |
mgl
Joined: 30 Sep 2007 Posts: 21
|
Posted: Tue Apr 01, 2008 8:52 pm Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
did you edit the .htaccess when installing the mod?
the zero dupe won't solve your link problem |
|
|
| Back to top |
|
 |
carfieldily
Joined: 31 Mar 2008 Posts: 7
|
Posted: Wed Apr 02, 2008 2:21 am Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
oops,
Thanks. |
|
|
| Back to top |
|
 |
carfieldily
Joined: 31 Mar 2008 Posts: 7
|
Posted: Wed Apr 02, 2008 3:02 am Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
Sorry, but it didn't work again.
This is the .htaccess code in the root:
| Code: |
RewriteEngine On
RewriteBase /
RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]
RewriteRule ^forum/[a-z0-9_-]*/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
RewriteRule ^forum/[a-z0-9_-]*-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC]
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
|
When I upload this to the server, a internal server error occured(500), please help.
Sorry for my stupid questions.
p.s.: it is phpbb 2.0.23 |
|
|
| Back to top |
|
 |
mgl
Joined: 30 Sep 2007 Posts: 21
|
Posted: Wed Apr 02, 2008 8:18 pm Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
| I am no expert in apache but I believe if you get a 500 that means something is wrong with your .htaccess. Do you have mod_rewrite activated? |
|
|
| Back to top |
|
 |
carfieldily
Joined: 31 Mar 2008 Posts: 7
|
Posted: Thu Apr 03, 2008 10:25 am Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
yes, I installed the rewrite mod first, after that I found I hadn't upload the .htaccess file to the root of the server.
But when I uploaded it to the server, it shew me the error |
|
|
| Back to top |
|
 |
mgl
Joined: 30 Sep 2007 Posts: 21
|
Posted: Sun Apr 06, 2008 5:35 pm Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
| that htaccess file works fine on my server. Does your host allow you to .htaccess files? |
|
|
| Back to top |
|
 |
carfieldily
Joined: 31 Mar 2008 Posts: 7
|
Posted: Mon Apr 07, 2008 9:50 am Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
I solved this problem.
The .htaccess file should be ANSI format, I wrote it in Unicode.
 |
|
|
| Back to top |
|
 |
mgl
Joined: 30 Sep 2007 Posts: 21
|
Posted: Mon Apr 07, 2008 2:45 pm Post subject: Re: Another question about rewrite mod and zero dupe |
|
|
| carfieldily wrote: | I solved this problem.
The .htaccess file should be ANSI format, I wrote it in Unicode.
 |
ooohh. Glad you fixed it.  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13031
|
|
| Back to top |
|
 |
|
|