Welcome Guest, Not a member yet? Register   Sign In
results from site_url()
#2

By default, the index.php file will be included in your URLs:

Code:
example.com/index.php/news/article/my_article

If your Apache server has mod_rewrite enabled, you can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the “negative” method in which everything is redirected except the specified items:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

In the above example, any HTTP request other than those for existing directories and existing files is treated as a request for your index.php file.
Reply


Messages In This Thread
results from site_url() - by cupboy - 04-18-2015, 10:23 PM
RE: results from site_url() - by suhindra - 04-19-2015, 12:29 AM
RE: results from site_url() - by cupboy - 04-19-2015, 08:42 AM
RE: results from site_url() - by paju89 - 04-20-2015, 02:21 PM
RE: results from site_url() - by CroNiX - 04-19-2015, 09:15 AM
RE: results from site_url() - by cupboy - 04-19-2015, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB