如果指针也是指向变量的变量,如何在.htaccess中重写url

时间:2017-07-19 13:49:24

标签: php apache .htaccess mod-rewrite url-rewriting

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]; } }]; }

变量类别因国家/地区,宗教或语言或其他原因而异。

0 个答案:

没有答案