我把一个习俗成像的博客推向言语,必须设置一个处理所有博客职位的调子。
我需要从中转调:
/oldblogdirectory/Old_Blog_Posts_Looked_Like_ This.htm
:
/newblogdirectory/new-blog-posts-look- similar-this/
reg reg?
我把一个习俗成像的博客推向言语,必须设置一个处理所有博客职位的调子。
我需要从中转调:
/oldblogdirectory/Old_Blog_Posts_Looked_Like_ This.htm
:
/newblogdirectory/new-blog-posts-look- similar-this/
reg reg?
贡布办法当然是这样做的途径。 我编制了两个测试目录:
oldblogdir/archives/blog_posts_look_like_this.htm
newblogdir/archives/blog-posts-look-like-this
下述《rewrite 规则》成功地转呈了方向。 只是略微修改了Gumbo的建议:
RewriteEngine on
RewriteBase /
RewriteRule ^(oldblogdir/archives/[^_]*)_(.*) $1-$2 [N]
RewriteRule ^oldblogdir/archives/(.*?).htm$ newblogdir/archives/$1 [R,NC,L]
请注意,<代码>[N] 造成检索档案重新评价,直至《登记》不再匹配。 因此,你应该把它放在档案的首位。
Try this mod_rewrite 规则:
RewriteEngine on
RewriteRule ^(oldblogdirectory/[^_]*)_([^_]*)_(.*) /$1-$2-$3 [N]
RewriteRule ^(oldblogdirectory/[^_]*)_(.*) /$1-$2
RewriteRule ^oldblogdirectory/(.+).htm$ /newdirectory/$1/ [L,R=301]
但是,为了降低病例转换率,你要么需要像internal todown
Function。 或您同时使用购买力平价。
I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...
I have an apache server running, with mongrels underneath running rails. The apache config file for my rails app looks like this: <VirtualHost *:80> ServerName trunk.production.charanga ...
I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...
I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...
I ve tried searching for this but it s pretty difficult to put into words. Basically, our site will run fine for most users without any issues. Sometimes though, those of us who use the site pretty ...
I would like to submit a form to a CGI script localy (w3c-markup-validator), but it is too slow using curl and apache, I want to use this CGI script more than 5,000 times in an another script. and ...
I am using curl like this: curl -s -F "uploaded_file=@/path_to_file;type=text/html" -F output=soap12 http://localhost/w3c-markup-validator/check >text.xml && xsltproc script/guilbep_soap_w3c....
I am serving my FastCGI application in Apache2 using the standalone FastCGI server and the FastCgiExternalServer directive. When I restart my FastCGI app my users get a 500 error. What can I do to ...