• Home
  • Get help
  • Ask a question
Last post 3 hours 3 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67860
All time tickets 10487
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#842 – Use setting in httpd.conf, not htaccess

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 12 August 2015 21:55 UTC
bdapat
Hello Weeblr team,

I host my customers on my own virtual machine on Azure using Apache. I have complete access to my httpd.conf, and would like to apply my RewriteRules there. I have tried, using the following, but your software seems to ignore this and only look for the htaccess file. Is that correct? Can I avoid using the htaccess file?

I have this in my httpd.conf:
<Directory />
RewriteEngine On
RewriteBase /

# Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
</Directory>

Thanks in advance!
Thursday, 13 August 2015 09:29 UTC
wb_weeblr
Hi

Nope, this is not correct. sh404SEF is a PHP program, running inside Joomla. It's not concerned with the web server you use and has no relationship with using a .htaccess, an nginx configuration file or whatever equivalent URL rewriting method exists on various web servers.

The best way to go to configure your server is simply to disable sh404SEF, and configure the server with just Joomla SEF. When Joomla SEF "works" (ie you don't get 404s anymore), then sh404SEF will also "works" - though again, Joomla or sh404SEF makes no use of an .htaccess of httpd.conf file, they run in PHP and how the web server operate is unrelated.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.