Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 11-17-2008, 10:46 AM
makina makina is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 3
Default sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

I installed joomla extension for SEF sh404SEF in their tutorial explained that i must rename htaccess.txt to .htaccess and if i get any errors like 500 internal server error or 404 not found i must comment Follow Symlinks or uncomment RewriteBase i tried many options, and tried with a lot of variations of htaccess but i still get 404 not found ERROR.

Does anyone use this joomla extension on Hostagtor and how did you fix htacces to works properly.

Is there unique htaccess file for Hostgator server to solve my problem.


Please help , if anyone had a same problem or someone who knows how can i make it work properly.
Reply With Quote
  #2  
Old 11-17-2008, 06:58 PM
dave g dave g is offline
Swamp Croc
 
Join Date: Mar 2005
Location: Ellington a cow town in Connecticut
Posts: 359
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

makina

I have 12 or more Joomla 1.0x and 1.5x sites running sh404SEF just fine here on HG

First we need more information

Is this a Joomla 1.0x or a 1.5x install
Is the site live www.your-domain.com if so a link to it may help
Is Joomla installed in "public_html" or a sub-directory of "public_html"
Are you getting a the 500 error when you rename the htaccess.txt to .htaccess and accessing your site.

If all else fails you can also copy and past the content of the .htaccess file here for us to look at.

Dave G
Reply With Quote
  #3  
Old 11-18-2008, 04:28 AM
makina makina is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 3
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

Hi Dave .

I installed joomla 1.57 , website is in my subdirectory, i don't get 500 intrnal server error , i get 404 page not found error.

Dave can you send me your htaccess, i will try with your htacces , if it doesn't work i will send you url of website then you can check what is a problem.

I think the problem is in htaccess, so please if you can send me your htaccess for Joomla 1.57.

Thank you Dave !
Reply With Quote
  #4  
Old 11-18-2008, 05:39 AM
dave g dave g is offline
Swamp Croc
 
Join Date: Mar 2005
Location: Ellington a cow town in Connecticut
Posts: 359
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

makina

Well a 404 is good. Because you have Joomla installed in a sub-directory using my .htaccess file will not work.

Is it the stock .htaccess file that came with Joomla or have you added stuff?

Have you changed the line:
# RewriteBase /
to
RewriteBase /YOUR_DIRECTORY

And please forgive this dumb question did you enable sh404SEF in its control panel?

Feel free to PM me if you need to.

Dave G
Reply With Quote
  #5  
Old 11-18-2008, 08:45 AM
makina makina is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 3
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

Hi Dave !

I tried many options in htaccess i uncommented RewriteBase and i ad my subdirectory , RewriteBase / mysubdirectory also i tried to comment Follow SymLinks but still i get the same error 404 page not found.

I enabled sh404SEf also in advanced options i enabled " with htaccess mod"

But it doesn't help.

In globar configuratuin i turned on for SEF and for mod_rewrite .

Hier is how look my .htaccess it is from Joomla 1.57

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://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!
#
# Block out any script trying to set a mosConfig value through the URL
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 /videoigre


########## 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
Reply With Quote
  #6  
Old 11-18-2008, 09:12 AM
dave g dave g is offline
Swamp Croc
 
Join Date: Mar 2005
Location: Ellington a cow town in Connecticut
Posts: 359
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

makina

Well everything looks correct.

Is this .htaccess in the root of /videoigre or is it in the root of public_html?

Do you a diffrent .htaccess file in the root of public_html? if so maybe there is something in there that is messing with the Joomla .htaccess.

As a last resort you can contact HG support and ask them if "mod_rewrite" is working on your site and explain what the problem is. It would also be nice to post the fix/what you find out here for others who may run into this problem.

Dave G
Reply With Quote
  #7  
Old 11-26-2008, 07:27 AM
rudi1380 rudi1380 is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 1
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

Hi I am having the same problem, installed sh404SEF on my joomla 1.5.8 website and as soon as I enabled it I keep receiving 404 errors. I tried changing the htaccess.txt yo .htaccess but it does not work. Any suggestions. I am fairly new at web development and am still learning. To my understanding the problem might be simply that the .htaccess file is not writable but for the life of me I hav no idea how to get it writable.

Hope somone can help
Reply With Quote
  #8  
Old 11-26-2008, 11:59 AM
dave g dave g is offline
Swamp Croc
 
Join Date: Mar 2005
Location: Ellington a cow town in Connecticut
Posts: 359
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

rudi1380

When you get the 404 page what does the URL look like, please post it.

In sh404SEF > Configuration > Advanced > under the "Advanced Component Configuration" heading do you have "Rewriting mode" set to "with .htaccess (mod_rewrite)

Dave G
Reply With Quote
  #9  
Old 12-09-2008, 11:06 PM
saosangmo saosangmo is offline
Hatchling Croc
 
Join Date: Dec 2008
Posts: 1
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

hi,
I'm using joomla 1.0.15, my site is http://cxoto.vn/autos/
but sh404sef doesn't work.
Help me please!

My htaccess is:

################################################## ###


## 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 /autos


########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## 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 - Joomla! core SEF Section



########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#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 SEF Section



########## 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!
#
# Block out any script trying to set a mosConfig value through the URL
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
Reply With Quote
  #10  
Old 12-10-2008, 09:08 AM
dave g dave g is offline
Swamp Croc
 
Join Date: Mar 2005
Location: Ellington a cow town in Connecticut
Posts: 359
Default Re: sh404SEF Joomla Component for Joomla 1.57 Problem with .htaccess

Ok

First things first you will need to change the .htaccess file so sh404SEF will work better you will do this by commenting out the lines in the "Begin - Joomla! core SEF Section" section we do this by placing a pound symbol # in front of the line. When your done this section should look like this:

########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## 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 - Joomla! core SEF Section

Now we need to remove the comments from the "Begin - 3rd Party SEF Section" when your done it should look like this:

########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#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 SEF Section

Next:

In the Joomla "Global Configuration > SEO" set both items to "Yes"

In the sh404SEF Control Panel find the words " Click here to switch to extended display (with all available parameters)" and click it this will now show you more controls under the "sh404SEF Configuration" button.

Now click the "sh404SEF Configuration" button, under the "Main" tab find "File suffix" and check that it has .html in the box I would also recommend adding .html to the "Default index file." box and set the "All lowercase" to "Yes".

Now under the "Advanced" tab find "Advanced Component Configuration > Rewriting mode" set this to "with .htaccess (mod_rewrite)"

I would also recommend you upgrade to Joomla 1.5x as support/updates will be dropped this coming summer on Joomla 1.0x.

Hope this helps.

Dave G
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Joomla 1.5 sh404SEF FunWEbs Shared Hosting Support 12 10-23-2008 05:51 PM
TOTAL NOOB: Joomla, SEO, Apache, .htaccess ?!? AnneBean.com Shared Hosting Support 16 06-25-2008 07:16 AM
Joomla 1.5 and .htaccess not working rodsdesign Pre-Sales Questions 2 04-04-2008 03:06 PM

All times are GMT -6. The time now is 01:50 AM.