php - .htaccess issue with /home/ in my URL from my controller -



php - .htaccess issue with /home/ in my URL from my controller -

i'v problem when i'm working php-mvc.net.

so every time want go specific url, need set /home/ in (becouse that's controller name)

but, want remove controller name. think .htaccess best way solve it?

so how every thing looks like:

so specific "home" want remove in url. (if there other object, want them disappear).

here .htaccess:

options -multiviews rewriteengine on options -indexes rewritebase / # general rewrite rules rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewritecond %{request_filename} !-l rewriterule ^(.+)$ index.php?url=$1 [qsa,l]

just rename controller , visit via http://example.com/yournewcontrollername/methodname ?

php .htaccess

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -