Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: sweekly on August 27, 2018, 01:36:22 AM
-
I've been having some trouble getting Clean URLs working with Drupal 7 on SME Server 9.2. I followed the guide https://www.drupal.org/docs/7/configuring-clean-urls/enable-clean-urls but Drupal 7 is still not allowing me to use Clean URLs. Below is my configuration for the ibay in /etc/httpd/conf/httpd.conf this is edited using a custom template.
<Directory /home/e-smith/files/ibays/IBAYNAME/html>
Options None
Options +Indexes
Options +FollowSymLinks
Options +Includes
php_admin_value upload_max_filesize 1999M
php_admin_value post_max_size 1999M
AllowOverride All
order deny,allow
deny from all
allow from all
AuthName "ibay for drupal 7 IBAYNAME"
AuthType Basic
AuthBasicProvider external
AuthExternal pwauth
require user IBAYNAME
Satisfy any
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
</Directory>
-
Please go back to the beginning and tell us exactly what you have done or we'll have an http://xyproblem.info/ on our hands.
Server version, contribs & other hacks installed, how much of their how to have you followed etc.
Did you know that some of your settings can be handled via ibay config settings?
There is lots of info on the wiki for that including using htaccess files.
-
I think RewriteBase needs to point to the URL path you're using.
That is, if you're accessing drupal at http://smeserver.xyz/IBAYNAME, then RewriteBase should be
RewriteBase /IBAYNAME
instead of
RewriteBase /
-
I think RewriteBase needs to point to the URL path you're using.
That is, if you're accessing drupal at http://smeserver.xyz/IBAYNAME, then RewriteBase should be
RewriteBase /IBAYNAME
instead of
RewriteBase /
I tried that and I still fail the clean url test. Below is my ibay configuration in httpd.conf
<Directory /home/e-smith/files/ibays/IBAYNAME/html>
Options None
Options +Indexes
Options +FollowSymLinks
Options +Includes
php_admin_value upload_max_filesize 1999M
php_admin_value post_max_size 1999M
AllowOverride All
order deny,allow
deny from all
allow from all
RewriteEngine on
RewriteBase /IBAYNAME
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
</Directory>