Firefox PHP

Mod_Rewrite Hack

Posted by TIG 
Re: Mod_Rewrite Hack
January 21, 2005 07:33PM
Thanks for the ruleset. Now I have to put this code on the .htaccess and, it works in the moment? or Have I to change the links for read, list, index and post?


Thanks.
Re: Mod_Rewrite Hack
January 21, 2005 08:08PM
you should read the posts before the last one too. thats why a file is posted there ...


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Mod_Rewrite Hack
January 22, 2005 01:46AM
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 :)
Re: Mod_Rewrite Hack
January 22, 2005 10:20AM
depends on your webserver, usually in a .htaccess file in the phorum-directory, maybe you even need to write it to the httpd.conf.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Mod_Rewrite Hack
January 25, 2005 12:42PM
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.
Re: Mod_Rewrite Hack
January 25, 2005 12:47PM
you server probably doesn't support mod_rewrite or you didn't put the "RewriteEngine on" in there too.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Mod_Rewrite Hack
January 25, 2005 01:50PM
Hi

My server supports mod_rewrite because I used it in the other pages of my site to change php to htm. And the RewriteEngine is on...

I`m confused :(
Re: Mod_Rewrite Hack
January 25, 2005 01:51PM
post the ruleset you used.
this thread contains multiple rulesets.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Mod_Rewrite Hack
January 25, 2005 02:50PM
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.
Re: Mod_Rewrite Hack
January 27, 2005 03:41PM
Nobody is going to help me please?

Thanks.
Sorry, only registered users may post in this forum.

Click here to login