Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

JoomSef Conflict After Apache mod_deflate install
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: JoomSef Conflict After Apache mod_deflate install

JoomSef Conflict After Apache mod_deflate install 13 years, 7 months ago #21567

Hi,

I had JoomSef setup perfectuly, all links in place and setup on the site www.mmaentry.com/v1

A freelancer altered the Apache on the server and installed mod_deflate (trying to improve site speed)... he also overwrote the .htaccess file and use this instead :


#LoadModule expires_module modules/mod_expires.so
ExpiresActive On
ExpiresDefault "access plus 10 years"

#Site - Global Configuration - Server - GZIP Page Compression - Yes
#LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/png
AddOutputFilterByType DEFLATE image/gif
AddOutputFilterByType DEFLATE image/jpg
AddOutputFilterByType DEFLATE image/jpeg
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
#AddOutputFilterByType DEFLATE application/x-shockwave-flash

FileETag none



The original is seenebelow:

##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension xml files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

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

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section




None of the menu links were working based on the old new JoomSef setup, so I purged the links not knowing the .htaccess file had been changed.

As it stands, I have combined both .htaccess files into one. JoomSef now works, but the links are totally messed up and out of sync, with new links generated.

I have now updated to 3.8.1 ... How can I revert to the original JoomSef URL setup?.. what are the correct or new .htaccess settings?


I look forward to any replies,


Paul
Last Edit: 13 years, 7 months ago by sNoopfox. Reason: file not adding
The topic has been locked.

Re: JoomSef Conflict After Apache mod_deflate install 13 years, 7 months ago #21602

  • jaku
Oh my...
this is difficult to comment on. People touching Apache configuration files should be knowing what they are doing.

If you have combined the .htaccess files, it should be ok.
(still ExpiresDefault "access plus 10 years" sound a bit strange to me :-])

Unless you have changed the JoomSEF configuration, the newly generated URLs should be same as they were before after you have purged the URLs DB.

Anyway, I think it might be best idea to rebuild the original URLs database from backup - if you have one.
The topic has been locked.

Re: JoomSef Conflict After Apache mod_deflate install 13 years, 7 months ago #21633

Hi,

I re-imported the old database and everthing thing is working in order now.


Thanks,

Paul
The topic has been locked.
  • Page:
  • 1
User Login Empty