Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Codeigniter URl Index.php removal not working -> index.php not removed in routes url except default controller [duplicate]

$
0
0

I have routes configuration in routes.php where i wrote all the routes. Except default controller all other routes not removing index.php

$route['default_controller']             = 'Home';$route['Login']                          = 'frontend/Users/login';

This is my routes file. Home controller working fine. But user controller not working. here is my htaccess

<IfModule mod_rewrite.c><IfModule mod_negotiation.c>        Options -MultiViews</IfModule>    RewriteEngine On    # Force HTTPS - Proto needed for AWS ELB    RewriteCond %{HTTP:X-Forwarded-Proto} !https    RewriteCond %{HTTP_USER_AGENT} !^ELB-HealthCheckerRewriteCond %{HTTP_HOST} ^lms\.getcloudtech\.com [NC]RewriteCond %{HTTPS} offRewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]    # Redirect Trailing Slashes If Not A Folder...    RewriteCond %{REQUEST_FILENAME} !-d    RewriteRule ^(.*)/$ /$1 [L,R=301]    # Handle Front Controller...    RewriteEngine onRewriteBase /html/RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond $1 !^(index\.php|images|robots\.txt)RewriteRule ^(.*)$ /index.php/$1 [L]    # Handle Authorization Header    RewriteCond %{HTTP:Authorization} .    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteCond "%{HTTP:Accept-encoding}" "gzip"</IfModule><IfModule mod_headers.c>Header append Vary User-Agent env=!dont-varyHeader Set Access-Control-Allow-Origin "*"</IfModule>

Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>