替换?通过/并通过htaccess从url中调整一些文本

时间:2015-07-04 03:34:31

标签: php apache .htaccess mod-rewrite

大家好,我有一个网站,我有char16_t文件,文件里面的代码好像是

htaccess

该文件已成功将 ErrorDocument 404 /error404.php ErrorDocument 403 /error404.php Options -Indexes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_METHOD} POST [NC] RewriteRule ^ - [L] RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.*$ [NC] RewriteRule \.(gif|jpg|jpeg)$ http://www.domain.com [L] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{THE_REQUEST} \s/+(page1)\.php\?eid=(78)[&\s] [NC] RewriteRule ^ /%1/%2? [R=301,L] RewriteRule ^(page1)/(\d+)$ /$1.php?eid=$2 [L,QSA,NC] RewriteCond %{THE_REQUEST} \s/+page2\.php\?url=([^\s&]+) [NC] RewriteRule ^ /%1? [R=301,L] RewriteCond %{THE_REQUEST} \s/+(.+?)\.php[\s?] [NC] RewriteRule ^ /%1 [R=302,L,NE] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}/$1\.php -f [NC] RewriteRule ^(.+?)/?$ /$1.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /page2.php?url=$1 [L,QSA] 重定向到page2.php?url=xyz,但它将page2/xyz定向到page1.php?eid=3除此之外我还需要将page1?eid=3定向到{{} 1}}

我需要将page3.php?did=3定向到page3/3page2.php?eid=3page2/3

page3.php?did=4指示正常 任何人都可以帮助我实际上page3/4我不是很好但是我试图操纵page1文件但没有帮助。

由于

0 个答案:

没有答案