Welcome Guest, Not a member yet? Register   Sign In
index.php will not go away
#1

[eluser]cjobes[/eluser]
No matter what, I can't seem to get my pages to display unless I have index.php in the URI.

Every time I change
$config['index_page'] = 'index.php';
to
$config['index_page'] = '';
the page will not display, and I get a 404.

Right now I can only see the page with this URL
http://rsvp_admin_ci:8080/index.php/ann_mtg_2013_rsvp/

I want it to display the page with
http://rsvp_admin_ci:8080/ann_mtg_2013_rsvp/

Here is my .htaccess file
Code:
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

Any help would be appreciated.

I am using Vagrant, if that is of any concern.

C
#2

[eluser]Madthumb[/eluser]
Try this: http://ellislab.com/forums/viewthread/233957/
#3

[eluser]InsiteFX[/eluser]
Try this one, change the paths to yours.
Code:
# Apache configuration file
# http://httpd.apache.org/docs/2.2/mod/quickreference.html

# Note: ".htaccess" files are an overhead for each request. This logic should
# be placed in your Apache config whenever possible.
# http://httpd.apache.org/docs/2.2/howto/htaccess.html

# Turning on the rewrite engine is necessary for the following rules and
# features. "+FollowSymLinks" must be enabled for this to work symbolically.

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /http://localhost/your-directory/public_html
</IfModule>

# For all files not found in the file system, reroute the request to the
# "index.php" front controller, keeping the query string intact

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://localhost/your-directory/public_html/index.php/$1 [L,QSA]
</IfModule>




Theme © iAndrew 2016 - Forum software by © MyBB