This link has been bookmarked by 117 people . It was first bookmarked on 26 Jan 2007, by Pankaj.
-
23 May 13
-
10 May 13
-
01 Jul 12
-
06 Jun 12
-
13 Oct 11
-
01 Oct 11
Steve FischerOverview and specs in configuring Clean URLs, including Apache configuration notes.
-
27 Sep 11
-
23 Sep 11
-
The instructions below are largely applicable only for the most common server setup, which is an Apache web server running on some flavor of Unix/Linux, with the mod_rewrite Apache module configured and mod_rewrite enabled in httpd.conf configuration file
-
Before enabling clean URLs in the Drupal configuration screens (see below), you may need to prepare your server for clean URLs to work
-
two ways
-
enable clean URLs in the httpd.conf file for better performance and security
-
use the Drupal .htaccess file instead
-
In Drupal 6, the installer tests for compatibility with Clean URLs as a part of the installation process
-
If the installer was not able to run the test successfully at install time
-
Drupal 6 will run the clean URL test automatically when you navigate to the Clean URLs configuration page and will show the results
-
Also note that even if Clean URLs are successfully enabled at install-time, if you have a dedicated server you may still want to follow the steps (below) to enable the more efficient httpd.conf rewrite method for clean URLs
-
Enable mod_rewrite for Apache
-
Be sure to uncomment AddModule mod_rewrite.c, if it is in your configuration file but has been commented out
-
locate the appropriate Apache configuration file for your site
-
copy or include the Drupal-specific settings directly into your configuration file
-
If you do not want to put the rewrite rules in your Apache configuration file, you can still simply use the Drupal .htaccess file
-
Allow Override directive set in your Apache configuration file
-
-
22 Jul 11
-
30 May 11
-
29 Apr 11
-
04 Apr 11
-
06 Feb 11
-
29 Nov 10
-
13 Oct 10
-
Error recovery
Enabling "Clean URLs" when your server is not properly configured (i.e. if the Clean URLs tests described above fail) can make it difficult to navigate back to administration pages to undo your mistake, because all the Drupal-generated menus and links will have URLs that do not work. If you find yourself in this situation, you can return to the administrative settings page by typing in the URL in the 'non-clean' form:
http://www.example.com/?q=admin/settingsfor the admin settings page in Drupal 4.x, orhttp://www.example.com/?q=admin/settings/clean-urlsto get to the Drupal 5 or Drupal 6 Clean URLs settings page -
Note: If you do not want to put the rewrite rules in your Apache configuration file, you can still simply use the Drupal .htaccess file (as you would if you were on shared hosting). You will need to have the Allow Override directive set in your Apache configuration file (this will allow local .htaccess overrides on your site):
AllowOverride All
AccessFileName .htaccess
-
-
24 Jun 10
-
08 Jun 10
-
03 Jun 10
-
19 Apr 10
-
19 Mar 10
-
23 Feb 10
-
17 Feb 10
-
AccessFileName .htaccess
-
-
13 Jan 10
-
26 Nov 09
-
Note: If you do not want to put the rewrite rules in your Apache configuration file, you can still simply use the Drupal .htaccess file (as you would if you were on shared hosting). You will need to have the Allow Override directive set in your Apache configuration file (this will allow local .htaccess overrides on your site):
-
-
16 Oct 09
-
29 Sep 09
-
27 Sep 09
-
18 Sep 09
-
28 Jul 09
-
04 Jul 09
-
26 Jun 09
Alainn GozertBy default, Drupal uses and generates URLs for your site's pages that look like "http://www.example.com/?q=node/83." This style of URLs can be hard to read, and can prevent some search engines from indexing all the pages of your site. Research suggests th
drupal mod_rewrite Apache howto urls tutorial url seo cleanurl
-
06 Jun 09
-
29 May 09
-
On some systems this command may be:
apachectl -MIn the output, check to see if the
rewrite_moduleis included in the list of modules.
-
-
03 Mar 09
-
12 Feb 09
Charles GnilkaBy default, Drupal passes path arguments to itself via its dynamically generated URLs. This results in URLs that look like "http://www.example.com/?q=node/83." This can make URLs hard to read and it prevents some search engines from indexing the pages wit
-
21 Jan 09
-
Bryan CarsonBy default, Drupal passes path arguments to itself via its dynamically generated URLs. This results in URLs that look like "http://www.example.com/?q=node/83." This can make URLs hard to read and it prevents some search engines from indexing the pages wit
tutorial docs documentation webdesign web search webdev url drupal cleanurls
-
11 Dec 08
-
19 Nov 08
-
08 Sep 08
-
17 Aug 08
Thomas LaigleDes URLs propres pour Drupal à la racine avec un hébergement 1and1
-
Optional: RewriteBase. Only do this if you are having trouble
The main configuration option which may need to be changed for your site is the
RewriteBase. This is usually specified in the Drupal .htaccess file. -
In some configurations setting
RewriteBase /
will allow mod rewrite to work.
-
-
09 Jul 08
-
13 Apr 08
-
in your Apache configuration file. Be sure to uncomment AddModule mod_rewrite.c.
-
-
04 Apr 08
-
11 Mar 08
-
11 Feb 08
-
14 Jan 08
-
08 Jan 08
-
19 Dec 07
-
11 Nov 07
-
06 Sep 07
-
14 Jul 07
-
10 May 07
-
13 Mar 07
-
20 Feb 07
-
19 Feb 07
-
26 Jan 07
-
27 Dec 06
-
13 Dec 06
-
13 Jun 06
-
23 Jan 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.