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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -