Welcome Guest, Not a member yet? Register   Sign In
Remove /?home/ from URL (Remove Controller Name from URL And Leave Only Method)
#1

[b]Hi Dear Codeignite Community i am newbie in Codeignite coding so i hope you guys give me the time to fix this error thanks is advance Smile[/b]
  1. So basically i followed a tutorial here and i disabled index.php from URL that problem was fixed but here is my .htaccess right now and i still have the problem of example.com/?home/signin or example.com/?browse/ Or /?admin/
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

RewriteCond %{QUERY_STRING} ^(.*)i=[^&]+(.*)$ [NC]
RewriteRule ^(.*)$ /$1?%1%2 [R=301,L]
</IfModule>
AddType text/vtt .vtt

But the problem is i followed every single tutorial here in codeignite forumĀ on disabling the name of the controller from URL like /?home/ or /?browse/ and every single controller like /?admin/ show in my URL i want a clean url directly with no controller name or the ? mark in it i tried going to my routes.php to change things in it following tutorials but still same issue remains here is how my routes.php looks like right now
Code:
*/
$route['default_controller'] = 'Home';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
Please help me i attempted every single solution but nothing yet
Reply


Messages In This Thread
Remove /?home/ from URL (Remove Controller Name from URL And Leave Only Method) - by MTR2021 - 07-15-2021, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB