Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>oh no you don't need htaccess to do that just use CI's routes. Here first change your HTACESS to this: </p> <pre><code># Customized error messages. ErrorDocument 404 /index.php # Set the default handler. DirectoryIndex index.php # Various rewrite rules. &lt;IfModule mod_rewrite.c&gt; RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] &lt;/IfModule&gt; </code></pre> <p>This one is way way better and you never have to change it for anything not for img folders or anything just leave it pure. now for your issue. </p> <p>open routes php in the Application->config folder.</p> <p>Now in CI all files route through index.php by default so i am assuming you mean your default controller anyway to route "controllers" like in your case special back to the main site just do this: </p> <p>if your default controller is still "welcome" as it is downloaded you would write a route like this: </p> <pre><code>$route['special/(:any)'] = "welcome"; </code></pre> <p>your url will not change and everything will be perfect </p> <p><strong>BUT DONT STOP READING YET, JUST TO MAKE SURE</strong>. </p> <p>this is what your routes would look like after your done: </p> <pre><code>//these two are for CI $route['default_controller'] = "welcome"; $route['scaffolding_trigger'] = ""; //this is your route sending all and any traffic for special //no matter how many levels it will always go to welcome-&gt;index. $route['special/(:any)'] = "welcome"; //if you want to use sub-pages or other functions within your welcome controller //i.e. welcome-&gt;signup. then just send the route information to the controller like this: $route['special/(:any)'] = "welcome/$1"; </code></pre> <p>The routing class in php is very powerful and this is just a piece here for more detailed info on routing see this page: </p> <p><a href="http://codeigniter.com/user_guide/general/routing.html" rel="nofollow noreferrer">CodeIgniter User Guide -> URI Routing</a></p> <p>Really hope i haven't confused you more. Good Luck </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload