The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHPsuexec and Rewrite Rules

Discussion in 'General Discussion' started by zigzam, Jun 8, 2006.

  1. zigzam

    zigzam Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    206
    Likes Received:
    0
    Trophy Points:
    16
    I just enabled PHPSuexec and sites using rewrite rules to give mambo/joomla search engine friendly urls no longer work.

    Code:
    ##
    # @version $Id: htaccess.txt 1570 2005-12-29 05:53:33Z eddieajau $
    # @package Joomla
    # @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
    # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
    # Joomla! is Free Software
    ##
    
    Options +FollowSymLinks
    
    #
    #  mod_rewrite in use
    #
    
    RewriteEngine On
    
    ##
    ## NOTE!
    ## When using multiple Joomla sites or other web applications in sub-folders,
    ## you must explicitly turn the RewriteEngine off or use the settings
    ## recommended for the application
    ##
    
    #  Uncomment following line if your webserver's URL 
    #  is not directly related to physical file paths.
    #  Update YourJoomlaDirectory (just / for root)
    
    # RewriteBase /YourJoomlaDirectory
    
    #
    #  Rules
    #
    
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*) index.php

    is what is needed to be placed in the .htacess file for it to function. I have tried just moving this to a php.ini file and it still gave me a 404 not found error on the search engine friendly pages.

    Does anyone have any ideas?
     
Loading...

Share This Page