加?与htaccess链接

时间:2018-11-23 19:20:25

标签: .htaccess

我想用htaccess中的www.example.com/men?recive=admin URL创建链接。 创建链接后,我要使用GET方法填写表单输入。

<input type="hidden" name="recive" id="recive" value="<?php $_GET["receiver"]?>" />

这是我的htaccess代码。请帮助我。

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{QUERY_STRING} !marker  
RewriteCond %{QUERY_STRING} id=([-a-zA-Z0-9_+]+)  
RewriteRule ^/?index$ %1? [R=301,L] 
RewriteRule ^/?([-a-zA-Z0-9_+]+)$ index?marker&id=$1 [L]

#RewriteCond %{SERVER_PORT} ^80$
#RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
#Rewrite to https
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /user
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

#traffic to http://, except secure.php
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /user
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

0 个答案:

没有答案