Apache FastCgi PHP-FPM: mod_rewrite?

Discussion in 'Installation/Configuration' started by rubendob, Jul 26, 2012.

  1. rubendob

    rubendob New Member

    Hello

    I have follow this tutorial and it works!

    http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2

    Only point is the rules of rewrite of my old server (apache mod_php ) does not work with the new server

    Mod_Rewrite is enabled by default in my new setup. I don't know if extra setup is needed with FastCGI enabled or simply I need to modify the rules

    Any ideas? I leave some rules of my application for better explanation:

    ...
    RewriteRule ^direccion$ /address.php [QSA,L]
    RewriteRule ^direcciones$ /addresses.php [QSA,L]
    ...

    It's just an example. Currently any rewrite rule works for me :(

    If somebody can help here, will be great!
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Is the rewrite module enabled?

    If you use your rewrite rules in an .htaccess file, do you use
    Code:
    AllowOverride All
    so that these rules are allowed in the .htaccess file?
     
  3. rubendob

    rubendob New Member

    you're right

    hello falko

    yes you were right, I have changed AllowOverride from /var/www/html default None to All and then .htaccess generated by Wordpress works.

    Thanks by your support.
     

Share This Page