Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Hiding Index.php Results In 403 Error

$
0
0
I've been trying to hide index.php, following the guidance of numerous and helpful posts, in the URL but have been unsuccessful. My setup is as follows:

  • VirtualBox Ubuntu Server VM (Host is Windows 7)
  • Using a shared folder on host
  • webapp is a sibling to framework folder
  • mod_rewrite is enabled


Webapp runs fine unless I want to hide the script name. When using the following .htaccess config, I get a 404 error (URL not found):

Options +FollowSymLinks
IndexIgnore */*

RewriteEngine on
RewriteBase promotingme
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php


Some other posts discussed the need to set some of the apache configs in /etc/apache2/default as follows:
<Directory /var/www/>
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>


Doing this actually results in a 403 error (forbidden access).

Anyone have any suggestions?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>