Mod_Rewrite Hack
Posted by TIG
Re: Mod_Rewrite Hack January 21, 2005 01:33PM |
Registered: 18 years ago Posts: 12 |
Re: Mod_Rewrite Hack January 21, 2005 02:08PM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Mod_Rewrite Hack January 21, 2005 07:46PM |
Registered: 18 years ago Posts: 12 |
I have read the previous posts, but I am some "lost" at this moment. I download the file sef.php and paste it in the top of the common.php file and the links of the phorum are changed. But when I click in them, HTTP 404 Error. This is my question, where I hace to write the RewriteRule Set?.
Thanks again :)
Thanks again :)
Re: Mod_Rewrite Hack January 22, 2005 04:20AM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Mod_Rewrite Hack January 25, 2005 06:42AM |
Registered: 18 years ago Posts: 12 |
I did all you said. I copied the rewriterules in a .htaccess file and I upload it to the main directory. After, I insert the sef.php PHP code into my common.php.
The links in the forum works properly, they appear ok in the status bar, but when I click on them, the 404 error doesn`t disappear. I don´t know what to do now. Please help me.
Thanks, again.
The links in the forum works properly, they appear ok in the status bar, but when I click on them, the 404 error doesn`t disappear. I don´t know what to do now. Please help me.
Thanks, again.
Re: Mod_Rewrite Hack January 25, 2005 06:47AM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Mod_Rewrite Hack January 25, 2005 07:50AM |
Registered: 18 years ago Posts: 12 |
Re: Mod_Rewrite Hack January 25, 2005 07:51AM |
Admin Registered: 20 years ago Posts: 9,240 |
Re: Mod_Rewrite Hack January 25, 2005 08:50AM |
Registered: 18 years ago Posts: 12 |
I`ve tried with:
1)
RewriteEngine On
RewriteBase /phorum5_HEAD
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ $1?$2,$3,$4,$5
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ $1?$2,$3,$4
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ $1?$2,$3
RewriteRule ^([^/]*)/([^/]*)$ $1?$2
and
2)
RewriteEngine on
RewriteRule ([^/]*),([^/]*).htm$ read.php?$1,$2
RewriteRule ([^/]*),([^/]*),([^/]*).htm#([^/]*)$ read.php?$1,$2,$3#$4
RewriteRule ([^/]*),([^/]*),([^/]*),([^/]*).htm#([^/]*)$ read.php?$1,$2,$3,$4#$5
RewriteRule sub_([^/]*).htm$ index.php?$1
RewriteRule list_([^/]*).htm$ list.php?$1
RewriteRule post_([^/]*).htm$ post.php?$1
But the result is the same.
Thanks.
1)
RewriteEngine On
RewriteBase /phorum5_HEAD
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ $1?$2,$3,$4,$5
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ $1?$2,$3,$4
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ $1?$2,$3
RewriteRule ^([^/]*)/([^/]*)$ $1?$2
and
2)
RewriteEngine on
RewriteRule ([^/]*),([^/]*).htm$ read.php?$1,$2
RewriteRule ([^/]*),([^/]*),([^/]*).htm#([^/]*)$ read.php?$1,$2,$3#$4
RewriteRule ([^/]*),([^/]*),([^/]*),([^/]*).htm#([^/]*)$ read.php?$1,$2,$3,$4#$5
RewriteRule sub_([^/]*).htm$ index.php?$1
RewriteRule list_([^/]*).htm$ list.php?$1
RewriteRule post_([^/]*).htm$ post.php?$1
But the result is the same.
Thanks.
Re: Mod_Rewrite Hack January 27, 2005 09:41AM |
Registered: 18 years ago Posts: 12 |
Sorry, only registered users may post in this forum.