The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Mon Apr 30, 2012 4:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 30, 2012 4:45 am
Posts: 6
I have enabled url rewriting in Joomla 2.5. I have renamed the htaccess.txt to .htacess .

In Firefox I get this error:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.This problem can sometimes be caused by disabling or refusing to accept cookies.
In Chrome I get :
This webpage has a redirect loop
The webpage at http://173.254.79.118/~reelski2/~reelsk ... shing-gear has resulted in too many redirects.
My url is : http://173.254.79.118/~reelski2/test/
The error occurs when I click on a menu item.
Any help would be greatly appreciated.
Thanks.


Top
 Profile  
 
PostPosted: Mon Apr 30, 2012 5:08 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Sep 12, 2008 2:48 pm
Posts: 948
Location: Sacramento
Did you make changes to the .htaccess file?

_________________
Joomla! Web Hosting, Design, and Consulting.
Portfolio: http://www.calweb.com/joomla
Please do not PM me for help, use the forums first.


Top
 Profile  
 
PostPosted: Mon Apr 30, 2012 2:38 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 30, 2012 4:45 am
Posts: 6
Mu current .htaccess has not had any changes done to it. I have changed it several times - uncommenting different statements. It did not seem to make a difference so I went back to the original Joomla one. I have posted it below.

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# 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 base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# 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.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.


Top
 Profile  
 
PostPosted: Mon Apr 30, 2012 2:45 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
@j_tomlinson
Give live site url to
http://173.254.79.118/~reelski2/
add this line and check one more time
also in htaccess try this code let me see if this works
Code:
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^index\.php$ http://173.254.79.118/~reelski2/$1 [R=301,L]

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
PostPosted: Mon Apr 30, 2012 5:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 30, 2012 4:45 am
Posts: 6
kurchania,
In the configuration.php I changed public $live_site = ''; to
public $live_site = 'http://173.254.79.118/~reelski2/';
I also added the lines to my .htaccess.
This did not fix the issue.

Any other ideas?

Thanks for the help.


Top
 Profile  
 
PostPosted: Thu May 03, 2012 6:00 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 30, 2012 4:45 am
Posts: 6
Still having this issue if anyone else has any ideas.

Thanks.


Top
 Profile  
 
PostPosted: Thu May 03, 2012 8:39 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Sep 12, 2008 2:48 pm
Posts: 948
Location: Sacramento
I'm curious, why are you using a fixed IP for accessing this website? Are you sure that website is the only one on that IP? Are you hosting this behind a router and that's the IP of the router port forwarding to an internal IP? We're trying to help, but there are many unknowns to your environment.

_________________
Joomla! Web Hosting, Design, and Consulting.
Portfolio: http://www.calweb.com/joomla
Please do not PM me for help, use the forums first.


Top
 Profile  
 
PostPosted: Thu May 03, 2012 8:48 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 30, 2012 4:45 am
Posts: 6
Thanks for the reply. I have it sitting on my host so the client can play around with it and I can do some testing before we go live and redirect the domain. I should probably have it on a testing domain or subdomain but I didn't think it would matter. It is definitely not the only website on that IP address. If you think that is the issue I will copy it to a subdomain.

Thanks.


Top
 Profile  
 
PostPosted: Thu May 03, 2012 10:24 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Sep 12, 2008 2:48 pm
Posts: 948
Location: Sacramento
Um, so yes. If you are using name based resolution on a single IP (which how every host does it now unless you need SSL), trying to access a specific website by IP address most likely isn't going to work unless you have the configuration properly done. It's better to set it up as a resolving name in your DNS and web configs.

_________________
Joomla! Web Hosting, Design, and Consulting.
Portfolio: http://www.calweb.com/joomla
Please do not PM me for help, use the forums first.


Top
 Profile  
 
PostPosted: Wed May 09, 2012 5:05 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
@j_tomlinson,
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
this thing work for me when we use server port redirection.

Point the site to some domain it will surely fix the problem.

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
PostPosted: Wed May 09, 2012 5:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 30, 2012 4:45 am
Posts: 6
Moving the site to a sub-domain has resolved the issue. Thank you for your help and responses.


Top
 Profile  
 
PostPosted: Wed May 09, 2012 6:08 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed May 09, 2012 5:53 pm
Posts: 1
Location: India
Hi, Mr. Hero.
Your support is very helpful for us because recently period I have also troubleshot this problem. Thanks for a nice response.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: Bullfn33 and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group