Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Redirect - Problem Needs Sorting Fast!
Old 01-18-2009, 05:40 PM Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Hey people, I've got this problem with my blog. If you go on it you will see the post about Twitter. if you click read more or click the title this error comes up on Firefox.



Anyone have any ideas on whats wrong?

Thanks in advance
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
 
Register now for full access!
Old 01-18-2009, 05:55 PM Re: Redirect - Problem Needs Sorting Fast!
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Your .htaccess redirects to a page which itself is being redirected.
Maybe you should post the harmless parts of your .htaccess.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-18-2009, 05:56 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
How would I go about doing that?
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-18-2009, 06:02 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Cmon guys this is driving me nuts!
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-18-2009, 06:08 PM Re: Redirect - Problem Needs Sorting Fast!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Originally Posted by AD7863 View Post
How would I go about doing that?
Depends....
If you have ssh access, you go in your site root directory, and type
Code:
cat .htaccess
if you have ftp, you connect to your server, go in the root directory, download the file .htaccess and open it with notepad
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-18-2009, 06:10 PM Re: Redirect - Problem Needs Sorting Fast!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Originally Posted by AD7863 View Post
Cmon guys this is driving me nuts!
It's a forum dude, not an help desk chat.
Wait a lil it longer than 6 minutes before complaining the lack of replies.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-18-2009, 06:11 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Lol sorry about that... It's just that I don't have a clue whats going on and I need to get it fixed asap otherwise my readers won't be able to read the entire post... lol
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-18-2009, 06:31 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Quote:
Originally Posted by tripy View Post
Depends....
If you have ssh access, you go in your site root directory, and type
Code:
cat .htaccess
if you have ftp, you connect to your server, go in the root directory, download the file .htaccess and open it with notepad
Okay so I got the .htaccess. Now what I do. I opened it and I don't understand the code..
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-18-2009, 06:33 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Want me to write what it says in the file here?
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-18-2009, 06:37 PM Re: Redirect - Problem Needs Sorting Fast!
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Quote:
Originally Posted by Insensus View Post
Maybe you should post the harmless parts of your .htaccess.
Yea I think that's what I said before. :P
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-18-2009, 06:39 PM Re: Redirect - Problem Needs Sorting Fast!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Originally Posted by AD7863 View Post
Want me to write what it says in the file here?
Yeah, that's the point.
So we can find out what the problem is
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-18-2009, 06:40 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
This is all the code thats in my .htaccess.

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-18-2009, 06:47 PM Re: Redirect - Problem Needs Sorting Fast!
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
I'm not sure, actually it's just a wild guess, but I'd say your Wordpress isn't in the root directory and therefore you should change RewriteBase / to RewriteBase /path/to/wordpress
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-18-2009, 07:06 PM Re: Redirect - Problem Needs Sorting Fast!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
I'd say your Wordpress isn't in the root directory
Well, it looks like it is in the root directory in fact...
But I receive a bunch of 301 headers before ff bringing me that screen too.
Only on the first post though, all the others are working.

Some others wild questions:
1) Do you use something like wp-cache? If yes, try to delete the cache, and rebuild it
2) Did you tried to rebuild the link topology? Try it by going into settings->permalinks->save changes.
It will rebuild some internal mappings.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-19-2009, 12:19 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Umm.. Okay Ill have a go...
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-19-2009, 12:23 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Quote:
Originally Posted by Insensus View Post
I'm not sure, actually it's just a wild guess, but I'd say your Wordpress isn't in the root directory and therefore you should change RewriteBase / to RewriteBase /path/to/wordpress
Hey I tried this but it gave me a 500 internal server error...
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-19-2009, 12:25 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Quote:
Originally Posted by tripy View Post
Well, it looks like it is in the root directory in fact...
But I receive a bunch of 301 headers before ff bringing me that screen too.
Only on the first post though, all the others are working.

Some others wild questions:
1) Do you use something like wp-cache? If yes, try to delete the cache, and rebuild it
2) Did you tried to rebuild the link topology? Try it by going into settings->permalinks->save changes.
It will rebuild some internal mappings.
Yep, thats the problem. All the other posts are working except that one. I've tried clearing the cash using wp-cash plugin but it still won't work. I'm going to try and delete the post and repost it.
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-19-2009, 12:41 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
Okay this is really getting on my nerves. I kept the Twitter post and made a new post, when you clicked read more or on the title it worked. I then made another Twitter post and when you clicked read more or on the title it wouldnt work? Anyone got any ideas?
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Old 01-19-2009, 01:24 PM Re: Redirect - Problem Needs Sorting Fast!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the problem is NOT the redirect but is something to do with your 404 page.

This is the what is being sent to UAs for that URI
HTML Code:
1cfb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

	<title>Nothing found for  2009 01 Twitter-a-great-way-to-promote-your-website-or-blog-2</title>
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - all posts" href="" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - all comments" href="http://blog.yourbloghost.com/comments/feed/" />

	<!-- style START -->
	<link rel="stylesheet" href="http://blog.yourbloghost.com/wp-content/themes/inove/404.css" type="text/css" media="screen" />
	<!-- style END -->

	<link rel='stylesheet' href='http://blog.yourbloghost.com/wp-content/plugins/nextgen-gallery/css/nggallery.css?ver=1.0.0' type='text/css' media='screen' />
<link rel='stylesheet' href='http://blog.yourbloghost.com/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.css?ver=1.3.0' type='text/css' media='screen' />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://blog.yourbloghost.com/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://blog.yourbloghost.com/wp-includes/wlwmanifest.xml" /> 
<meta name='NextGEN' content='1.0.2' />
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-includes/js/jquery/jquery.js?ver=1.2.6'></script>
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-includes/js/jquery/jquery.form.js?ver=2.02'></script>
<script type='text/javascript'>
/* <![CDATA[ */
	WPWallSettings = {
		refreshtime: "20000",
		expand_box: ""
	}
/* ]]> */
</script>
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-content/plugins/wp-wall/wp-wall.js?ver=abc'></script>
<script type='text/javascript'>
/* <![CDATA[ */
	shutterSettings = {
		msgLoading: "L O A D I N G",
		msgClose: "Click to Close",
		imageCount: "1"
	}
/* ]]> */
</script>
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.0'></script>
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-content/plugins/nextgen-gallery/admin/js/swfobject.js?ver=2.1'></script>
<style type="text/css">.addtoany_share_save img{border:0;}</style>

<!-- all in one seo pack 1.4.6.15 [262,306] -->
<!-- /all in one seo pack -->
<script type="text/javascript" src="http://blog.yourbloghost.com/wp-content/plugins/cryptx/js/cryptx.js"></script>
<link rel="stylesheet" href="http://blog.yourbloghost.com/wp-content/plugins/gd-star-rating/css/gdstarating.css.php?s=acrystal%257C46%257C10%257Cpng%257C1" type="text/css" media="screen" /><script type="text/javascript">function gdsrWait(rater, loader) { jQuery("#"+rater).css("display", "none"); jQuery("#"+loader).css("display", "block"); }
function gdsrEmpty() { }

jQuery(document).ready(function() {
        if (jQuery.browser.msie) jQuery(".gdsr_rating_as > a").attr("href", "javascript:gdsrEmpty()");
    jQuery(".gdsr_rating_as > a").click(function() {
        var el = jQuery(this).attr("id").split("X");
        gdsrWait(el[5], el[6]);
        jQuery.getJSON('http://blog.yourbloghost.com/wp-content/plugins/gd-star-rating/gd-star-ajax.php', {_ajax_nonce: '2f783f834d', vote_id: el[1], vote_value: el[2], vote_user: el[3], vote_type: el[4] }, function(json) {
            gdsrWait(el[6], el[5]);
            if (json.status == 'ok') {
                jQuery("#gdr_stars_" + el[1]).html("");
                jQuery("#gdr_vote_" + el[1]).css("width", json.value);
                jQuery("#gdr_text_" + el[1]).addClass("voted");
                jQuery("#gdr_text_" + el[1]).html(json.rater);
            }
        });
    });
            jQuery(".gdsr_review_as > a").click(function() {
        var el = jQuery(this).attr("id").split("X");
        var vote = el[1];
        var size = el[2];
        var new_width = vote * size;
        jQuery("#gdsr_cmm_stars_rated").css("width", new_width + "px");
        jQuery("#gdsr_cmm_review").val(vote);
    });
});</script><!--[if lte IE 6]><style type="text/css">.ratertbl, .outer, .inner, .starsbar a:hover { behavior: url(http://blog.yourbloghost.com/wp-content/plugins/gd-star-rating/iepngfix/iepngfix.php) }</style><script type="text/javascript" src="http://blog.yourbloghost.com/wp-content/plugins/gd-star-rating/iepngfix/iepngfix_tilebg.js"></script><![endif]-->
<!-- platinum seo pack 1.2.3 -->
<meta name="robots" content="noodp,noydir" />
<!-- /platinum one seo pack -->

<!-- Start Of Script Generated By WP-Polls 2.40 -->
<script type="text/javascript">
/* <![CDATA[ */
	var polls_ajax_url = 'http://blog.yourbloghost.com/wp-content/plugins/wp-polls/wp-polls.php';
	var polls_text_wait = 'Your last request is still being processed. Please wait a while ...';
	var polls_text_valid = 'Please choose a valid poll answer.';
	var polls_text_multiple = 'Maximum number of choices allowed:';
	var poll_show_loading = 1;
	var poll_show_fading = 1;
/* ]]> */
</script>
<meta name='NextGEN' content='1.0.2' />
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-includes/js/tw-sack.js?ver=1.6.1'></script>
<script type='text/javascript' src='http://blog.yourbloghost.com/wp-content/plugins/wp-polls/polls-js-packed.js?ver=2.40'></script>
<link rel='stylesheet' href='http://blog.yourbloghost.com/wp-content/themes/inove/polls-css.css?ver=2.40' type='text/css' media='all' />
<style type="text/css">
.wp-polls .pollbar {
	margin: 1px;
	font-size: 8px;
	line-height: 10px;
	height: 10px;
	background: #d8e1eb;
	border: 1px solid #c8c8c8;
}
</style>
<!-- End Of Script Generated By WP-Polls 2.40 -->
<link rel="stylesheet" href="http://blog.yourbloghost.com/wp-content/plugins/wp-wall/wp-wall.css" type="text/css" /><link id='MediaRSS' rel='alternate' type='application/rss+xml' title='NextGEN Gallery RSS Feed' href='http://blog.yourbloghost.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php' />

<!-- NextGeEN Gallery CoolIris/PicLens support -->
<script type="text/javascript" src="http://lite.piclens.com/current/piclens_optimized.js"></script>
<!-- /NextGEN Gallery CoolIris/PicLens support --><style type="text/css">.recentcomments a{display:inline !important;padding: 0 !important;margin: 0 !important;}</style>
</head>

<body>

<div id="container">
	<div id="talker">
		<a href="http://www.neoease.com/"><img src="http://farm3.static.flickr.com/2114/2303427067_c817d7fb51_m.jpg" alt="Talker" /></a>
	</div>
	<div id="notice">
		<h1>Welcome to 404 error page!</h1>
		<p>Welcome to this customized error page. You've reached this page because you've clicked on a link that does not exist. This is probably our fault... but instead of showing you the basic '404 Error' page that is confusing and doesn't really explain anything, we've created this page to explain what went wrong.</p>
		<p>You can either (a) click on the 'back' button in your browser and try to navigate through our site in a different direction, or (b) click on the following link to go to homepage.</p>
		<div class="back">
			<a href="http://blog.yourbloghost.com/">Back to homepage &raquo;</a>
		</div>
		<div class="fixed"></div>
	</div>
	<div class="fixed"></div>
</div>

</body>
</html>

<!-- Page not cached by WP Super Cache. 404. -->

0
Response Headers are:
Code:
HTTP/1.1 301 Moved Permanently
Date: Mon, 19 Jan 2009 17:05:27 GMT
Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/4.4.9
X-Powered-By: PHP/5.2.6
Vary: Cookie
X-Pingback: http://blog.yourbloghost.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Last-Modified: Mon, 19 Jan 2009 17:05:28 GMT
Location: http://blog.yourbloghost.com/2009/01/twitter-a-great-way-to-promote-your-website-or-blog-2/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-19-2009, 02:23 PM Re: Redirect - Problem Needs Sorting Fast!
AD7863's Avatar
Major Geek

Posts: 435
Name: Artful Dodger
Location: England, UK
Trades: 0
So like what does that mean??
__________________

Please login or register to view this content. Registration is FREE
AD7863 is offline
Reply With Quote
View Public Profile Visit AD7863's homepage!
 
Reply     « Reply to Redirect - Problem Needs Sorting Fast!

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.73356 seconds with 12 queries