Configure the clean URL of Drupal

Source: Internet
Author: User
Tags drupal

Introduction: This is a detailed page for configuring the clean URL of Drupal. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 332640 'rolling = 'no'>

1. Cancel comments before "loadmodule rewrite_module modules/mod_rewrite.so" in Apache httpd. conf.

2. Find

<Directory "C:/program files/Apache Software Foundation/apache2.2/htdocs"> # possible values for the options directive are "NONE", "all ", # or any combination of: # indexes includes followsymlinks symlinksifownermatch execcgi Multiviews # note that "Multiviews" must be named * explicitly * --- "options all" # doesn't give it to you. # The options directive is both complicated and important. please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # options indexes followsymlinks # AllowOverride controls what directives may be placed in. htaccess files. # It Can Be "all", "NONE", or any combination of the keywords: # options fileinfo authconfig limit # AllowOverride all # controls who can get stuff from this server. # order allow, deny allow from all </directory>

Add in <directory> </directory>

 
Rewriteengine onrewritebase/rewritecond % {request_filename }! -Frewritecond % {request_filename }! -Drewriterule ^ (. *) $ index. php? Q = $1 [L, QSA]

3. Go to the link http: // localhost /? Q = admin/settings/clean-URLs. select Enabled and save.

More articles on "Configuring Drupal's clean URL"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/332640.html pageno: 11.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.