Results 1 to 8 of 8

Thread: Rewrite mode does not work after upgrade to ubuntu 12.10

  1. #1
    Join Date
    May 2011
    Beans
    6

    Rewrite mode does not work after upgrade to ubuntu 12.10

    Hi!

    I have a problem with rewrite mode on my local web-server (apache2) after ubuntu upgrade and now I have not access to my projects. Localhost and virtual host works fine, I can go to http://localhost myproject and to http://myhost.home. But for zend-framework projects I need rewrite_mod and I have not access to address http://myhost.home/index/.

    After

    sudo a2enmod rewrite

    I have "Module rewrite already enabled"

    also in my /etc/apache2/sites-available/myhost.home I have:

    <VirtualHost *:80>
    ServerName myhost.home
    DocumentRoot /home/slava/server/myhost/public/
    SetEnv APPLICATION_ENV development
    <Directory /home/slava/server/myhost/public/>
    Options Indexes MultiViews FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    </VirtualHost>

    in my /home/slava/server/myhost/public/.htaccess I have

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

    Everything looks good (for me ) but it does not work! .htaccess file I did not change and system worked with it before upgrade. Can someone help me?

    Thank you!

  2. #2
    Join Date
    Oct 2012
    Beans
    2

    Question Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    I too am experiencing a similar issue. I have noticed that it will rewrite "hostname.com/Index" but not "hostname.com/index".

    This is a very strange issue and didn't manifest itself until after the upgrade to 12.10. Is this a bug with this particular build of Apache?

  3. #3
    Join Date
    Oct 2012
    Beans
    1

    Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    Exactly the same issue ... I tried everything and I could not find a solution. There has to be an error in apache2!

    Cheers

  4. #4
    Join Date
    Jul 2005
    Beans
    3
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    same here. cannot access my webprojects - i found this but cannot fix this myself...
    http://askubuntu.com/questions/19268...ork-with-nginx
    Last edited by zven; October 22nd, 2012 at 02:46 PM.

  5. #5
    Join Date
    Jul 2005
    Beans
    3
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    i got it working again by editing:
    /etc/apache2/mods-available/php5.conf
    and uncommenting the line
    Code:
    php_admin_value engine Off
    to
    Code:
    # php_admin_value engine Off

  6. #6
    Join Date
    Oct 2012
    Beans
    2

    Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    I got it working also! However, I did so by turning off MultiViews in my V-Host.

  7. #7
    Join Date
    Dec 2005
    Location
    Kingston, Ontario
    Beans
    1,919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    Some have resorted to downgrading PHP.
    +Solace @DeviantArt | Awesome Guide | Beginners Team Member
    Canadian Forces 2007-present

  8. #8
    Join Date
    Dec 2008
    Beans
    3

    Re: Rewrite mode does not work after upgrade to ubuntu 12.10

    http://stackoverflow.com/questions/1...traight-to-404
    this has help me.

    Code:
    a2dismod negotiation
    & restart apache & working.
    Last edited by grzemach; February 1st, 2013 at 10:14 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •