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

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -