Please help. I need an example on how to link a page and URL displayed should be somewhat the same with: “http://localhost/learning/mysite/index.php?r=site/login” instead of “http://localhost/learning/mysite/myfolder/login/index.php”. . I don’t know the terms to search google… but I did try to search using different terms and failed to get what I want…, …
THANKS GUYS!!!
You need to send parameters and not rewrite.
So, to understand better, you have:
http://localhost/learning/mysite/myfolder/login/index.php
and you need
http://localhost/learning/mysite/index.php?r=site/login
You just have to move your index.php file from “/learning/mysite/myfolder/login/” to “/learning/mysite” and send that pram.
If it’s the opposite, you need rewrite - https://www.google.com/search?q=mod_rewrite+examples
Thank you so much… I learned a lot…