Url rewrite in CodeIgniter -


my url websitename/package?some-text some-text alias , using fetch values db want see url websitename/some-text using codeigniter framework , package controller please me..

please try using htaccess file below

redirect 301 /package?some-text http://websitename.com/some-text

you can use this site generating htaccess rules.

edit

please change content of htaccess to

rewriteengine on rewritecond %{request_uri} ^/package?some-text [nc] rewriterule ^.*$ /some-text#%1 [l] 

edit - 2

you can try in tyhe codeigniter routes.php file, like

$route['some-text'] = "package_some-text"; $route['default_controller'] = "web"; $route['404_override'] = 'web/not_found'; 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -