I just installed a new copy of Drupal 6.19 to speed up the process of writing modules. But for some reason, the rewrite module does not work for Drupal.
What I checked:
apachectl -M
php_info()
.htaccess
AllowOverride All
I have options here. I looked everywhere, but Drupal settings do not allow me to turn on the settings, and their test just visits the site, which should work if the rewrite module was there.
My specs: Mac OS X 10.6 Snow Leopard Using Embedded Apache with PHP5
Thank!
Two more things to check:
In addition, I will try to simplify the test scenario - start with a simple rewrite directive in the vhost configuration. After that, move it to .htaccess at the top level of the root of the vhosts document, then to subdirectories (if necessary / used).
, : .htaccess.
Update:
, , Apache .htaccess. , 500 Internal Server Error. , mod_rewrite , Drupal.
500 Internal Server Error
mod_rewrite
, , rewriteBase
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a # VirtualDocumentRoot and the rewrite rules are not working properly. # For example if your site is at http://example.com/drupal uncomment and # modify the following line: RewriteBase /~username/drupal**
Drupal , : example.com/drupal, "RewriteBase/" .htaccess, .
URL- - www.example.com/fisherman, www.example.com/data/pages/fisherman.php
apache URL . 2 .
Enable rewrite module Allow .htaccess file overrides
SSH root. , , , , . :
,
sudo a2enmod rewrite
sudo service apache2 restart
. , ,
sudo apache2ctl –M
. "rewrite_module".
http://codeontrack.com/enable-clean-urls-apache/
httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so
, Apache, drupal URL
.htaccess . Rackspace/CentOS image
-MultiViews
. , , , - .htaccess - ghfdiddfdjf, . , , .htaccess . , :
ghfdiddfdjf
etc/apache2/sites-enabled default-000. AllowOverride All 2 .
etc/apache2/sites-enabled
default-000
Source: https://habr.com/ru/post/1766520/More articles:UIAlertView button frames - all 0? - cocoa-touchUsing keySend in Windows Media Center - c #How can we read a zip file and get information about files or folders without unpacking in PHP? - phpAndroid: java.lang.IllegalMonitorStateException: object is not blocked by the thread before waiting () - javaresolving class name conflicts in java - javaDynamic ASP.Net or MVC2 data? - asp.net-mvcControl YUI DataTable Record Identifiers - javascriptPlugin for viewing functions and variables in Gvim - vimConfiguring django south with PostgreSQL - djangoMVC Framework, similar to ASP.NET MVC, but for Winform - c #All Articles