Koozali.org: home of the SME Server

Drupal 7 Clean URLS with SME Server

Offline sweekly

  • 2
  • +0/-0
  • testetstestest
Drupal 7 Clean URLS with SME Server
« 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>

Offline ReetP

  • *
  • 3,738
  • +5/-0
Re: Drupal 7 Clean URLS with SME Server
« Reply #1 on: August 27, 2018, 11:40:40 AM »
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.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Drupal 7 Clean URLS with SME Server
« Reply #2 on: August 27, 2018, 12:56:04 PM »
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 /

Offline sweekly

  • 2
  • +0/-0
  • testetstestest
Re: Drupal 7 Clean URLS with SME Server
« Reply #3 on: September 05, 2018, 12:07:59 AM »
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>