ispCP - Board - Support
Joomla and SEO htaccess doesn't work anymore in 1.0.7 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Joomla and SEO htaccess doesn't work anymore in 1.0.7 (/thread-15688.html)



Joomla and SEO htaccess doesn't work anymore in 1.0.7 - praenti - 01-02-2012 01:56 AM

Hi,

I've moved a web from an very old ISPCP installation to my new 1.0.7 (on Ubuntu LTS release) installation, but I don't get the installed Joomla working anymore.

Removing the
Code:
Options FollowSymLinks
results in empty pages.

With this option enabled I get always a forbidden error. The error log doesn't show anything... :-(. Also I'm using the default settings from ISPCP for this host.

Here is the .htaccess:
Code:
##  Can be commented out if causes errors, see notes above.
Options FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla/MamboDirectory (just / for root)

RewriteBase /


########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]            ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section


########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]            ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section

########## Special part

RewriteCond %{REQUEST_URI} /component/option,com_akobook [NC]
ReWriteRule (.*) /component/option,com_easybook [R]

Anybody who can help here?


RE: Joomla and SEO htaccess doesn't work anymore in 1.0.7 - ephigenie - 01-05-2012 09:49 PM

most probably you have a PHP error. Check with a simple testscript ala

<? phpinfo(); ?>

put that into test.php and call it via a browser.


RE: Joomla and SEO htaccess doesn't work anymore in 1.0.7 - tek - 01-26-2012 01:46 PM

I had this issue too on a couple of box's. Drove me nuts till I stumbled upon the issue. Its apache's config for that domain that needs to be modified.

Open up your apache virtual domains config file which in debian is
/etc/apache2/sites-available/ispcp.conf

using your editor of choice find the domain your working on, for this Ill use one for example.com and look for the section that looks like you see below.

Code:
# httpd dmn entry cgi support END.

    <Directory /var/www/virtual/example.com/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/example.com/:/var/www/virtual/example.com/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/example.com/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/example.com/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu5150 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/example.com/
        <Directory "/var/www/fcgi/example.com">
            AllowOverride All
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

There is two things I have changed to make it work, both same directive.
Look for the lines AllowOverride. By default they are set in these two sections to None. Change it to All and restart apache. That should resolve your issue and you'll get SEF urls again.
HTH.

:cool:Tnt