mod rewrite - Apache ModRewrite Issues .htaccess -


i attempting create mod rewrite change following:

https://example.com/app/landing https://example.com?keyword=landing , https://example.com/app/adwords https://example.com?keyword=adwords

however, have not been able so. using codeiginter requires few rules in place prevent index.php? in url, therfore unsure whether or not creating problem.

here current code:

rewriteengine on rewritebase /app/  try 1: rewriterule landing https://example.com/?keyword=landing [r]  try 2: rewriterule ^landing?/ https://example.com/?keyword=landing [r]  try 3: rewriterule ^landing?/ https://example.com/?keyword=landing [r]  #removes access system folder users. #additionally allow create system.php controller, #previously not have been possible. #'system' can replaced if have renamed system folder. rewritecond %{request_uri} ^system.* rewriterule ^(.*)$ /index.php?/$1 [l]  #when application folder isn't in system folder #this snippet prevents user access application folder #submitted by: fabdrol #rename 'application' applications folder name. rewritecond %{request_uri} ^application.* rewriterule ^(.*)$ /index.php?/$1 [l]  #checks  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l]   

do guys have suggestions?


Popular posts from this blog