Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 10:45 pm (All times are UTC )

 




Post new topic Reply to topic  [ 1 post ] 
Author Message
Posted: Fri Sep 14, 2007 8:51 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Apr 03, 2006 7:44 pm
Posts: 92
Location: Iowa
Hi -
http://forum.joomla.org/index.php/topic,208052.0.html
suggested I post this here.  If this has been fixed/ this fix not work, feel free to delete this post if not useful.

Some Notes (on SEF in a subdirectory)
'Search Engine Friendly URL's' to 'Yes' AND 'Use Apache mod_rewrite' to 'No' gives menu relative hyperlinks without "/" like Home

Search Engine Friendly URL's to 'Yes' AND  Use Apache mod_rewrite 'Yes' gives menu relative hyperlinks with "/" like Home

Apache mod_rewrite setting to 'Yes' is the variable  $sef_rewrite = '1';  in configuration.php

so .....

Here's a hack I just got to work for mod_rewrite for a site in a subdirectory.

added else around line 321 in includes/application.php:
Code:
                    $options['mode'] = $this->getCfg('sef');
         if(!$this->getCfg('sef_rewrite')) {
            $options['prefix'] = 'index.php';
         }
         else { // IS SEF_REWRITE gc mod Sept 12
               $options['prefix'] = '.';
         }


The calling code strips the ' . ', but evaluates the URL properly.  :)

_________________
****************************************
Get Ubuntu NOW! http://www.ubuntu.com/

For Fun:  Watch Code Monkey! http://www.accessdataservices.com/blog/code-monkey


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group