Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-20 15:07:38

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

[issue] Section always pointing to home page.. Can't change!

This is some really weird stuff.

www.mysite.com/p

This URL always shows the homepage.. I even deleted the section to test and instead of 404, it still goes back to home. I cleaned my cache, restarted, repaired my DB tables … For some strange reason this url is stuck and there is nothing I can do about it.. Looking at my htaccess doesnt reveal anything either.. I’m at a total loss here

Any ideas?

Edit: URL removed at clients request..

Last edited by Ace of Dubs (2006-11-20 20:57:48)

Offline

#2 2006-11-20 17:23:48

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

For clarification purposes, here is my htaccess file:

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

 RewriteRule ^(.*) index.php
</IfModule>

Offline

#3 2006-11-20 21:37:03

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

Interesting update.

Apparently zeroes have the same problem as P

www.site.com/0

takes me to home page..

I already have a working “1” directory, but

www.site.com/2

3,4,5,6,7,8,9

all give me 404s like they are supposed to,

This is some bizarre shit!

Last edited by Ace of Dubs (2006-11-20 21:37:44)

Offline

#4 2006-11-20 21:58:54

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [issue] Section always pointing to home page.. Can't change!

0 is because we’re using PHP’s empty() function, which interprets 0 as the same as an empty string.

p is because of some unused(?) code that looks like it was intended for clean gallery image URLs.


Alex

Offline

#5 2006-11-21 02:02:39

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

thanks for clearing that up zem..thought I was going crazy!

Is there any way to hack the “p” problem out?

Would be a great help :)

Offline

#6 2006-11-21 13:54:28

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

Any way at all??? Can you at least tell me where that gallery function resides?

Sorry to be persistent, but if this doesnt work out I’ll have to edit a whole bunch of documents and links by hand to reflect the URL change…. a few days worth of work!

Any clue would be muchly appreciated.

Offline

#7 2006-11-21 14:29:18

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [issue] Section always pointing to home page.. Can't change!

Hi Ace of Dubs,

maybe you can make a simple URL rewriting/redirection (using .htaccess) from everything that links to /p/ to your renamed section.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#8 2006-11-21 14:31:28

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

muy interesante Jullián

Unfortunately I have no idea how to do it :(

Offline

#9 2006-11-21 14:42:43

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [issue] Section always pointing to home page.. Can't change!

Ops!
Me neither! Let’s ask our friend Google.

Check this:
http://www.javascriptkit.com/howto/htaccess7.shtml
http://www.ssi-developer.net/htaccess/redirecting.shtml

And this (look for the HTAccesible free software):
http://www.tlhouse.co.uk/pc_software.shtml

Or, of course, be patient and wait until zem or Mary or any of the freaky fellas here comes up with the magical words.

Last edited by maniqui (2006-11-21 14:43:24)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#10 2006-11-21 16:51:46

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

After tinkering a bit I have come to the conclusion that htaccess is not capable of overriding the core behavior of textpattern.

IOW,

Zem, Mary, Freaks… Save meeeeeeee!!!!

Offline

#11 2006-11-21 21:55:00

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [issue] Section always pointing to home page.. Can't change!

Offline

#12 2006-11-21 22:06:29

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [issue] Section always pointing to home page.. Can't change!

Holy rewrite weirdness, it’s the TextLight symbol of distress ;)

Offline

Board footer

Powered by FluxBB