| | | |  |  | |  |
25.10.2004, 03:21
|
#22 (permalink)
| | Junior Mamber
Join Date: Oct 2004
Posts: 25
| Re: 404 Sef Another problem that I see is, when you type in http://localhost/mambo/
What I see in the mainpage (mainbody) is: FILE NOT FOUND: /mambo/
However, if I type in http://localhost/mambo/index.php it works fine.
Any idea about this one?
Thanks! |
| |
25.10.2004, 03:30
|
#23 (permalink)
| | Senior Mamber
Join Date: Sep 2004
Posts: 221
| Re: 404 Sef Quote: |
Originally Posted by twysm | Luck of the draw really, it process the urls is the order it finds them. If you look at the article Métodos y Propiedades de un RecordSet. Judging from the link, it appears to have found this one first. With phpMyAdmin, you should be able to swap them. |
| |
25.10.2004, 03:47
|
#24 (permalink)
| | Senior Mamber
Join Date: Sep 2004
Posts: 221
| Re: 404 Sef Quote: |
Originally Posted by dcabbar | perhaps this change PHP Code: if ($mosConfig_sef) {
if (!(eregi("index[0-9]*.php",$_SERVER['REQUEST_URI']))) {
$base = str_replace($mosConfig_live_site,"",$_SERVER['PHP_SELF']);
switch ($_SERVER['REQUEST_URI']) {
case $base:
case str_replace("index.php","",$base):
break;
case "":
die("Something strange has occured. This should not happen");
|
| |
25.10.2004, 03:52
|
#25 (permalink)
| | Junior Mamber
Join Date: Oct 2004
Posts: 25
| Re: 404 Sef Worked like a charm 
THANKS AGAIN! |
| |
25.10.2004, 03:58
|
#26 (permalink)
| | Senior Mamber
Join Date: Sep 2004
Posts: 221
| Re: 404 Sef Quote: |
Originally Posted by dcabbar Worked like a charm 
THANKS AGAIN! | Ok, I reopened the bug report as reminder for myself. This will make the next release.
Thanks for the feedback! |
| |
25.10.2004, 05:10
|
#27 (permalink)
| | Baby Mamber
Join Date: Oct 2004
Posts: 3
| Re: 404 Sef Quote: |
Originally Posted by m2k Details??? What specifically is not working?
Please post the sql in question. | PHP Code: ERROR: Unclosed quote @ 107
STR: '
SQL: CREATE TABLE `mos_redirection` (
`id` int(11) NOT NULL auto_increment,
`cpt` int(11) NOT NULL default \'0\',
`oldurl` varchar(100) NOT NULL default \'\',
`newurl` varchar(150) NOT NULL default \'\',
`dateadd` date NOT NULL default \'0000-00-00\',
PRIMARY KEY (`id`)
)
TYPE=MyISAM;
SQL-query :
CREATE TABLE `mos_redirection` ( `id` int(11) NOT NULL auto_increment, `cpt` int(11) NOT NULL default \'0\', `oldurl` varchar(100) NOT NULL default \'\', `newurl` varchar(150) NOT NULL default \'\', `dateadd` date NOT NULL default \'0000-00-00\', PRIMARY KEY (`id`) ) TYPE=MyISAM;
MySQL said:
#1064 - You have an error in your SQL syntax near ''0\',
`oldurl` varchar(100) NOT NULL default \'\',
`newurl` varchar(150) NO' at line 3
I may need glasses because I don't see anything unclosed. |
| |
25.10.2004, 05:25
|
#28 (permalink)
| | Elite Mamber
Join Date: Apr 2004 Location: /dev/peru/lima
Posts: 1,008
| Re: 404 Sef Thanks m2k! Great addon!  Is there a posibility to 'map' characters and not to replace by a '_'? because 'p_agina' is not the same as 'página' so it could be just 'pagina', hope you understand what im trying to say
Why not ask Arthur to make a little news about this great addon? |
| |
25.10.2004, 07:20
|
#29 (permalink)
| | Senior Mamber
Join Date: Sep 2004
Posts: 221
| Re: 404 Sef Quote: |
Originally Posted by limey
I may need glasses because I don't see anything unclosed. | Here's another dump of the structure straight from phpMyAdmin.
I left off the quotes this time.
#
# Table structure for table `mos_redirection`
#
DROP TABLE IF EXISTS mos_redirection;
CREATE TABLE mos_redirection (
id int(11) NOT NULL auto_increment,
cpt int(11) NOT NULL default '0',
oldurl varchar(100) NOT NULL default '',
newurl varchar(150) NOT NULL default '',
dateadd date NOT NULL default '0000-00-00',
PRIMARY KEY (id)
) TYPE=MyISAM; |
| |
25.10.2004, 08:02
|
#30 (permalink)
| | Senior Mamber
Join Date: Sep 2004
Posts: 221
| Re: 404 Sef Quote: |
Originally Posted by twysm Thanks m2k! Great addon!  Is there a posibility to 'map' characters and not to replace by a '_'? because 'p_agina' is not the same as 'página' so it could be just 'pagina', hope you understand what im trying to say  | Thank you! and thanks for the feedback!
Ok, here's something to try. If you need to make additions to the array, please let me know about them. PHP Code: function titleToLocation(&$title) {
global $SEF_replacement;
$locales = array(
"á" => "a",
"é" => "e",
"í" => "i",
"ó" => "o",
"ú" => "u",
"ä" => "a",
"ë" => "e",
"ď" => "i",
"ü" => "u",
"ö" => "o",
"ń" => "n");
return $title = preg_replace(array("/'/","/[^a-zA-Z0-9\-!.,+()]+/","/(^_|_$)/"),array("",$SEF_replacement,""),strtr($title,$locales));
}
|
| | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT +2. The time now is 08:37. | | | |