Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have been battling with .htaccess rules to get my SSL setup working right for the past few days.I get a requested URL not found error whenever I try access any requests that does not do through the index controller.

For example this URL would work fine if I enter the it manually

https://www.example.com/index.php/auth/register

However my application has been built in such a way that the url should be this

https://www.example.com/auth/register

and that gives the requested URL not found error

My other URLs such as

https://www.example.com/index/faq

https://www.example.com/index/blog

https://www.example.com/index/terms

work just fine.

What rule do I need to write in my htaccess to get the URL

https://www.example.com/auth/register

working?

My htaccess file looks like this

RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

I posted an almost similar question in stackoverflow

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.