lyceum-users AT lists.ibiblio.org
Subject: Lyceum-users mailing list
List archive
Re: [Lyceum-users] Why after Summiting a comment goes to Portal
- From: whatup <whatup.tw AT gmail.com>
- To: "Serena Kierzkowski" <serenityinblue AT yahoo.com>
- Cc: lyceum-users AT lists.ibiblio.org
- Subject: Re: [Lyceum-users] Why after Summiting a comment goes to Portal
- Date: Fri, 8 Sep 2006 00:10:18 +0800
If you use sub domain mode,maybe you can use this patch.
Index: wp-comments-post.php
===================================================================
--- wp-comments-post.php (revision 927)
+++ wp-comments-post.php (working copy)
@@ -62,8 +62,7 @@
setcookie('comment_author_email_' . COOKIEHASH,
stripslashes($comment_author_email), time() + 30000000, COOKIEPATH,
COOKIE_DOMAIN);
setcookie('comment_author_url_' . COOKIEHASH,
stripslashes($comment_author_url), time() + 30000000, COOKIEPATH,
COOKIE_DOMAIN);
endif;
-$location = ( empty( $_POST['redirect_to'] ) ) ? get_permalink(
$comment_post_ID ) : $_POST['redirect_to'];
-
+$location = ( empty( $_POST['redirect_to'] ) ) ?
sprintf("http://%s.%s%s",$_POST['b'],MAINDOMAIN,get_permalink(
$comment_post_ID )) : $_POST['redirect_to'];
validateToken($_POST['token'], basename(__FILE__), 'default',
$comment_post_ID);
wp_redirect( $location );
On 9/7/06, Serena Kierzkowski <serenityinblue AT yahoo.com> wrote:
Recently I installed Lyceum with subdomains and, as I was testing the
features, I found the same problem. You post a comment (the comment
does go through), next thing you see you're on portal page.
Any ideas how to fix it?
Serena
P.S. I did not modify the .htaccess file
--- junk <junk AT tusojos.net> wrote:
---------------------------------
Please can someone tell me why after summiting a comment
it takes the user to the Portal.php page
I hate that, i think it has to do about the .htaccess file, but I am
not sure
here is my htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*)
RewriteRule ^(.*) http://%1/$1 [R,L]
RewriteRule ^(.*) lyceum/$1 [QSA,L]
</IfModule>
Please help
PG
_______________________________________________
Lyceum-users mailing list
Lyceum-users AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/lyceum-users
-
[Lyceum-users] Why after Summiting a comment goes to Portal,
junk, 09/06/2006
-
Re: [Lyceum-users] Why after Summiting a comment goes to Portal,
Serena Kierzkowski, 09/07/2006
- Re: [Lyceum-users] Why after Summiting a comment goes to Portal, whatup, 09/07/2006
-
Re: [Lyceum-users] Why after Summiting a comment goes to Portal,
Serena Kierzkowski, 09/07/2006
Archive powered by MHonArc 2.6.24.