Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
how to set url root not public?
  • i use .htaccess
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{REQUEST_URI} !^public
        RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>
    
    but it is not work.
    visit public away fine.
  • You don't have to change anything, just rename the public folder to for example public_html if that's the docroot on your server.
  • Not to be offensive YIIPHP, but you're asking a lot of questions here about stuff that is actually documented or asked before. Did you read the documentation, and searched this forum? In case of htaccess, the FuelPHP installation contains a working example, so I don't see why you have to make your own. If this is because you have deviated from the original installation structure, it would be nice to tell us what you have changed, so we can judge if that will have an impact on your rewrite rules, and how to deal with that impact (note that the docs describe solutions for the most common alternative setups).

  • sorry for?that ?if ask the same question , i search my question , but not find the same question ,
    May be ask stable for fuelphp
    .i had read document I. Searched,I mean not public dir,
    I use. Host can not point to public dir,
  • If you have installed the FuelPHP directory structure inside your document root, see http://docs.fuelphp.com/installation/instructions.html#/install_inside_root. If you have installed it differently, explain exactly how, because now we have to guess...
  • sorry,i had to do this.
    i find my question .
    it is show be a domain to the root dir.
    i test in local.
    now it works. like localhost
    but if use localhost/myfrist .htaccess not work fine
  • Please define "not work fine". What happens? What platform do you use? Which webserver, PHP using a module or in CGI mode?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion