Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 30

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 24.10.2004, 23:23   #11 (permalink)
Junior Mamber
 
Join Date: Oct 2004
Posts: 25
dcabbar is on a distinguished road
Default Re: 404 Sef

Sorry, the second one was posted before I saw this one...

I have that set in the mambo/configuration.php, but still not working, will be debugging into this one if you give me a bit time
dcabbar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 24.10.2004, 23:39   #12 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: 404 Sef

Should have thought of that myself. The bug report mentions RewriteBase, but it didn't click that corrosponding entry should be

ErrorDocument 404 /cms/index.php

vice

RewriteBase /cms/

Thanks!
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.10.2004, 23:43   #13 (permalink)
Junior Mamber
 
Join Date: Oct 2004
Posts: 25
dcabbar is on a distinguished road
Default Re: 404 Sef

The problem: redirecting to /index.php instead of /mambo/index.php was because I had "ErrorDocument 404 /index.php" in the .htaccess, this should have been "ErrorDocument 404 /mambo/index.php" It might be a good idea to specify this in the installation docs.

After I fix this though, when I click on an article, I get an error as "FILE NOT FOUND: /mambo/Newsflashes/Newsflash/Newsflash_2.htm" in the mainbody block (where the article was supposed to be displayed), just below this error, I get the article titled 404--which I created for installing 404 Sef...

Now, when I look at the database, mos_redirection table contains:

Newsflashes/Newsflash/Newsflash_2.html in the oldurl column. However, as you can see from the error above, in process_uri method of sef.php, $_SERVER['REQUEST_URI'] returns the URL with the subdirectory, which is:

/mambo/Newsflashes/Newsflash/Newsflash_2.htm, so the database lookup returns empty there... And I think that is why it fails there...
dcabbar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.10.2004, 23:54   #14 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: 404 Sef

Quote:
Originally Posted by dcabbar
Now, when I look at the database, mos_redirection table contains:

Newsflashes/Newsflash/Newsflash_2.html in the oldurl column. However, as you can see from the error above, in process_uri method of sef.php, $_SERVER['REQUEST_URI'] returns the URL with the subdirectory, which is:

/mambo/Newsflashes/Newsflash/Newsflash_2.htm, so the database lookup returns empty there... And I think that is why it fails there...
Perhaps changing the sql in process_uri()
PHP Code:
    $sql="SELECT oldurl, newurl FROM #__redirection ".
        
"WHERE '".substr($_SERVER['REQUEST_URI'],1)."' ".
        
"RLIKE CONCAT( oldurl, '(/.*)?$' ) "
        
"ORDER BY CHAR_LENGTH(oldurl) DESC ".
        
"LIMIT 1"
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.10.2004, 00:05   #15 (permalink)
Junior Mamber
 
Join Date: Oct 2004
Posts: 25
dcabbar is on a distinguished road
Default Re: 404 Sef

Hi,

This fixed the problem... Thanks!

Why do you think it inserts it without the "/mambo/" though?

In any case, it works, and I am happy
Appreciate your help.
dcabbar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.10.2004, 00:48   #16 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: 404 Sef

Quote:
Originally Posted by dcabbar
Hi,

This fixed the problem... Thanks!

Why do you think it inserts it without the "/mambo/" though?

In any case, it works, and I am happy
Appreciate your help.
Great, this will be included in alpha4 too.

To answer your question, it inserts without the /mambo/ because the SEF urls are built independantly of the the physical file location. To me, makes more sense that way since the results get appended to the value of $mosconfig_live_site.
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.10.2004, 01:42   #17 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Alpha4 released

alpha4 has been released.

Thanks for the feedback this weekend!!! Please keep it up. I can't fix what I don't know it broken.
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.10.2004, 02:08   #18 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: 404 Sef

Not really sure what you mean by aliases, but if you are talking about creating your on "special" urls that should already work. You just need to know the correct NON-sef url to put in the `newurl` field. You can make up anything you want for the `oldurl` field it should work. Just remember to leave off the leading slash (Ignore the Redirection Manager warning if you are using it for my project)
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.10.2004, 02:44   #19 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 3
limey is on a distinguished road
Default Re: 404 Sef

The supplied Sql query ok? Can;t see whats wrong, but it ain't working.
limey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.10.2004, 03:00   #20 (permalink)
m2k
Senior Mamber
 
m2k's Avatar
 
Join Date: Sep 2004
Posts: 221
m2k is on a distinguished road
Default Re: 404 Sef

Quote:
Originally Posted by limey
The supplied Sql query ok? Can;t see whats wrong, but it ain't working.
Details??? What specifically is not working?
Please post the sql in question.
m2k is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SEF / Cloaking / Redirect / Custom 404 module idea mkoenigs Mambo 5.0 Wishlist 3 27.11.2004 02:47
Using AkoComment with SEF milek Mambo 4.5 'How Do I' Questions 0 17.08.2004 17:50
Sef alphanostrum Mamboreport Dokus & Tips 6 17.05.2004 07:39
SEF issues with Apache 1.3.27 danews Mambo 4.5 Bugs 8 25.04.2004 20:06


All times are GMT +2. The time now is 12:12.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.