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
permlink redirect problem
Old 12-17-2008, 07:02 AM permlink redirect problem
Novice Talker

Posts: 11
Trades: 0
Hi all,
if anyone could help me I would appreciate it enormously, Iīm going insane with this!
been searching all over the net and canīt find a solution, so Iīm turning to you. Im running a worpress blog on my own server.

My host is using IIS6/windows 2003, so I did the pretty permalink redirect through 404 redirect on my server, like recommended here:
http://tech.einaregilsson.com/2007/0...#comment-52536
It all works fine, except one thing, the index page keeps refreshing in a loop every 3 seconds or something. I have tried php redirects in the theme editor, htaccess, isnīt working because of the IIS, I guess, so non of the plugins work either.
Hereīs my site if you want tocheck it out:
http://www.efven.com/
the other pages and posts are fine and doesnīt behave that way. Mark that I havenīt put any refresh code in it, I only did the 404 redirect and then it started to behave like that.
any thoughts?
much appreciated,
rarali is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-17-2008, 10:07 AM Re: permlink redirect problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Somewhere in your PHP code is a line that says

header("refresh: 0; url="/")
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is 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 12-18-2008, 02:46 AM Re: permlink redirect problem
Novice Talker

Posts: 11
Trades: 0
Iīve been looking through it and I canīt find it no matter what.I havenīt gone through the root directory though, can it be there to?

It might have something to do with the redirect. I put a 404 handler script in the root, like this:

<?php
$qs = $_SERVER['QUERY_STRING'];
$pos = strrpos($qs, '://');
$pos = strpos($qs, '/', $pos + 4);
$_SERVER['REQUEST_URI'] = substr($qs, $pos);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>


then I did a 404 redirect from my server. In that way I can run "pretty permalinks" on IIS/windows.
Itīs so strange.

Last edited by rarali; 12-18-2008 at 02:54 AM..
rarali is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 03:11 AM Re: permlink redirect problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
These are the headers from your site, the one in bold is the problem.
Quote:
HTTP/1.1 200 OK
Connection: close
Date: Thu, 18 Dec 2008 08:07:22 GMT
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/5.2.5
X-Pingback: http://www.efven.com/xmlrpc.php
Refresh: 0;url=http://www.efven.com/
X-Powered-By: ASP.NET
Some code that is used ONLY on the index page is causing it.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is 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 12-18-2008, 03:56 AM Re: permlink redirect problem
Novice Talker

Posts: 11
Trades: 0
code added here removed

Last edited by rarali; 12-18-2008 at 09:04 AM..
rarali is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 04:03 AM Re: permlink redirect problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
it's probably in this function

<?php get_header(); ?>

As it has to be occuring BEFORE the doctype gets sent to the browser
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is 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 12-18-2008, 04:10 AM Re: permlink redirect problem
Novice Talker

Posts: 11
Trades: 0
I tried it, but it wasnīt it. It continued looping without the header.
how annoying.
rarali is offline
Reply With Quote
View Public Profile
 
Old 12-18-2008, 04:35 AM Re: permlink redirect problem
Novice Talker

Posts: 11
Trades: 0
Found it! started for some reason think that it might be a plugin, so I uninstalled one and it worked! It was a plugin called permalink redirect, if anyone should have this problem in the world some day . Actually found one in an old blog comment (also mailed him in desperation but he hasnīt answered).
Chrishirst, thank you for taking the time trying to help, I really appretiate it!

Iīve been reading this forum for a while but never posted, and found a lot of help here, thanks!
rarali is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to permlink redirect problem
 

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 2.06775 seconds with 12 queries