View Full Version : Wordpress MU Help!
flappi282
09-24-2009, 11:34 AM
The NOBLOGREDIRECT in the config file, does absolutely nothing.
I set it to:
define('NOBLOGREDIRECT', 'http://dashboard.zblogs.co.uk/wp-register.php?new=%siteurl%');
But it redirects me to "http://www.zblogs.co.uk/wp-register.php" with NO GET VARIABLES!
Why so?
I have set vhost to yes, as it says to.
Whats wrong.
Rocini
09-24-2009, 11:45 AM
Let me understand....
YouŽre trying to pass a variable in a redirect, am I correct?
So, the redirect was made from BH to another place, right?
Well, if this is the question, keep in mind two things....
1- Are the variable NOT empty before posting it?
2- Are you using the correct configuration of php.ini? Be sure about it... And more... on the CPanel, normally BH uses a configuration from the php core. You can generate a php.ini and especify to use it, where the configurations can be used as you wish.
Remember about REGISTER GLOBALS on the php.ini. This line makes a great diff in the way to manipulate variables through POST and GET.
Oh, and more one thing.... be sure about the code... Is a php variable youŽre posting in the line? Near %siteurl%. If isnŽt a variable, I donŽt use in this way, but just siteurl. Or, is a variable, like $siteurl.
flappi282
09-24-2009, 12:33 PM
This is the config:
define( 'VHOST' , 'yes');
// If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
// Set this value to %siteurl% to redirect to the root of the site
define( 'NOBLOGREDIRECT', 'http://dashboard.zblogs.co.uk/wp-register.php' );
Still redirects to only zblogs.co.uk
flappi282
09-24-2009, 12:41 PM
ALSO, how do you edit the message left after a blog is deleted?
Thanks
Rocini
09-24-2009, 02:31 PM
Through parts,
I not a specialist on blogs.... Just looking your code.
If you want to pass a variable, in the end of line put ?YOUR-VARIABLE=YOUR-VALUE
if you need more variables, complete the code using &.
With 2 variables, your code seems like this:
http://your-url.com/path?YOUR-VARIABLE=YOUR-CODE&YOU-VARIABLE2=YOUR-VALUE2 ...... go and on and on.............
Attention with the code, cause this code could be specific. Maybe some way to put these variables be diff from usually php code.
Your second question, sorry, but I donŽt work with blogs.... Maybe someone better than me can help you....
flappi282
09-25-2009, 09:31 AM
I got rid of the variables when I posted
Rocini
09-25-2009, 10:08 AM
A good test is make 2 pages in php and pass variables from one to another.
YouŽll see if you php settings are correct.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.