Current time: 04-19-2024, 04:09 PM Hello There, Guest! (LoginRegister)


Post Reply 
Joomla and SEO htaccess doesn't work anymore in 1.0.7
Author Message
praenti Offline


Posts: 1
Joined: Nov 2008
Reputation: 0
Post: #1
Question Joomla and SEO htaccess doesn't work anymore in 1.0.7
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?
01-02-2012 01:56 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #2
RE: Joomla and SEO htaccess doesn't work anymore in 1.0.7
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.
01-05-2012 09:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tek Offline


Posts: 4
Joined: Nov 2007
Reputation: 0
Post: #3
RE: Joomla and SEO htaccess doesn't work anymore in 1.0.7
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
01-26-2012 01:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)