在http://localhost/name.php?**category**=$origin&gender=$gen&alpha=$alphabet
中为网址重写:
RewriteRule ^name/([a-zA-Z]+)/([a-zA-Z]+)/([A-Z])/?$ name.php?category=$1&gender=$2&alpha=$3
写作:
http: //localhost/name/uk/girl/A
将网址设为:.htaccess
但如果URL为:
,如何在http://localhost/name.php?**$category**=$origin&gender=$gen&alpha=$alphabet
文件中重写URL
$category
现在“类别”也变为变量 - (IBAction)sendButton:(id)sender {
[DIOSUser userSendPasswordRecoveryEmailWithEmailAddress:self.txtForgotPassword.text
success:^(AFHTTPRequestOperation *operation, id responseObject) {
// Success Block
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Retrieving Password" message:@"We have send you reset link to your email Please check your email." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
}failure:^( AFHTTPRequestOperation *operation , NSError *error ){
// Failure Block
if(!error){
// error.description
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Oopss" message: error.description delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
}
}];
}
变量类别因国家/地区,宗教或语言或其他原因而异。