1 (edited by 2012-03-29 09:14:23)

Topic: Need help with Mod Rewrite Hack

I've tried using both versions of this hack https://cutephp.com/forum/index.php?showtopic=31744 for 1.4.6 - and currently trying to use Ifa's. However, both versions keep coming up with the samee problems:

- The htaccess file is generated but does not contain any rewrite rules or conditions from the script. I tried to add them manually:


RewriteEngine On

RewriteRule ^postpage/(.+).html(.*)$ review-anime.php?start_from=$1$2 [NC,QSA,L]
RewriteRule ^comments/(.+).html(.*)$ review-anime.php?subaction=showcomments&url=$1$2 [NC,QSA,L]
RewriteRule ^commentspage/(.+)/(.+).html(.*)$ review-anime.php?comm_start_from=$1&subaction=showcomments&url=$2$3 [NC,QSA,L]
RewriteRule ^archiveindex/(.+).html(.*)$ review-anime.php?archive=$1&subaction=list-archive$2 [NC,QSA,L]
RewriteRule ^archive/(.+).html(.*)$ review-anime.php?subaction=showfull&url=$1$2 [NC,QSA,L]
RewriteRule ^archivepage/(.+)/(.+).html(.*)$ review-anime.php?start_from=$2&archive=$1&subaction=list-archive$3 [NC,QSA,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+).html(.*)$ review-anime.php?subaction=showfull&url=$1$2 [NC,QSA,L]

- The links are changed from :

review-anime.php?subaction=showfull&id=1332832005&archive=&start_from=&ucat=10&

to

/post/Anime Reviews/black-rock-shooter-1332832005.html

But when I try to click to read the full story, I am redirected to a 404 missing page. Any help would be greatly appreciated

Re: Need help with Mod Rewrite Hack

I've tried using both versions of this hack https://cutephp.com/forum/index.php?showtopic=31744 for 1.4.6 - and currently trying to use Ifa's. However, both versions keep coming up with the samee problems:

- The htaccess file is generated but does not contain any rewrite rules or conditions from the script. I tried to add them manually:


RewriteEngine On

RewriteRule ^postpage/(.+).html(.*)$ review-anime.php?start_from=$1$2 [NC,QSA,L]
RewriteRule ^comments/(.+).html(.*)$ review-anime.php?subaction=showcomments&url=$1$2 [NC,QSA,L]
RewriteRule ^commentspage/(.+)/(.+).html(.*)$ review-anime.php?comm_start_from=$1&subaction=showcomments&url=$2$3 [NC,QSA,L]
RewriteRule ^archiveindex/(.+).html(.*)$ review-anime.php?archive=$1&subaction=list-archive$2 [NC,QSA,L]
RewriteRule ^archive/(.+).html(.*)$ review-anime.php?subaction=showfull&url=$1$2 [NC,QSA,L]
RewriteRule ^archivepage/(.+)/(.+).html(.*)$ review-anime.php?start_from=$2&archive=$1&subaction=list-archive$3 [NC,QSA,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+).html(.*)$ review-anime.php?subaction=showfull&url=$1$2 [NC,QSA,L]

- The links are changed from :

review-anime.php?subaction=showfull&id=1332832005&archive=&start_from=&ucat=10&

to

/post/Anime Reviews/black-rock-shooter-1332832005.html

But when I try to click to read the full story, I am redirected to a 404 missing page. Any help would be greatly appreciated

Dear User!

Please would you send us a Full Story link where you've faced 404 error?

Best regards,
CN Support team

Re: Need help with Mod Rewrite Hack

Dear User!

Please would you send us a Full Story link where you've faced 404 error?


Here is the link without the hack to the full story of my article that is working:
http://kuroi.leizel.net/ver3/review-anime....mp;ucat=10&


This is the same page with the hack:
http://kuroi.leizel.net/ver3/test.php

404 page url:

http://kuroi.leizel.net/ver3/post/anime/bl...1332832005.html



Re: Need help with Mod Rewrite Hack

Nevermind, I think the problem was is my server, switched to linux from windows and now the htaccess file is generating but now it gives my whole folder and internal service error whenever it's present.