想要改进这个问题吗? 更新问题,以便用
Closed 10 years ago.
简单问题:
我试图保持一份301个重定向列表, 以SEO为目的, 我想知道它是否最好使用.httaccess 与重定向规则, 或者我是否应该保留 PHP 中的重定向列表 。
如果你能解释一下 为什么两个都更好 那太好了!
想要改进这个问题吗? 更新问题,以便用
Closed 10 years ago.
简单问题:
我试图保持一份301个重定向列表, 以SEO为目的, 我想知道它是否最好使用.httaccess 与重定向规则, 或者我是否应该保留 PHP 中的重定向列表 。
如果你能解释一下 为什么两个都更好 那太好了!
在.htaccess 中保留您的重定向对性能更好, 因为每次重定向不需要 PHP 口译员初始化。 另一方面, 如果您在 PHP (统计等) 中这样做, 您可以做额外的处理 。 如果您想要简单的重定向, 没有别的, 请将其放置在.htaccess 中, 只是为了表现的优势 。
对于 SEO 来说,两者没有区别,因为两者的结果相同; 位置变化。 两者都由服务器处理, 对搜索引擎具有相同影响。 因此, 以此为基础, 以最有效处理者为准 。
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 ...