Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Search Engine Friendly URLS

Aloittaja RobbieB, toukokuu 26, 2006, 06:36:52 IP

« edellinen - seuraava »

RobbieB

I know that mambo/joomla have this feature built in and the .htaccess files in place, but what if you bridge smf and joomla? Has anyone had experience doing that? I tried a search but only found older topics that didn't have direct answers yes/no.

I don't know much about mod rewrite except how it changes urls to be easier to read.
I found 2 .htaccess files in /packages/backups and /attachments.

I currently run my sites on iis but am considering installing apache if there is a way to get that working.

Orstio

Yes.  Turn on SEF in Joomla, not in SMF.

RobbieB

Will the fact that Joomla also has it turned on cause any problems though?

Orstio

Turning on SEF in Joomla is fine.

Turn it off in SMF.

RobbieB

Oh I see, I misread your post and thought you meant to turn it on in SMF.

got it. Turn it on in joomla, off in smf.

mojito

#5
I see that my joomla worked fine with friendly urls selected however the forum posts could not be found. It looks like it doesnt work that simply.

Is it something that works with only new posts since turning it on? maybee a mod on the htaccess can solve it? and there is no .htaccess for the smf itself so i dont know how they get that to work for a standalone forum.

any ideas and robbie how did you get on?

mojito
SMF 1.1 RC2 bridge 1.4

Orstio

What is the contents of your .htaccess file?

mojito

##
# @version $Id: htaccess.txt 1005 2005-11-13 17:33:59Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

Options +FollowSymLinks

#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update YourJoomlaDirectory (just / for root)

# RewriteBase /YourJoomlaDirectory

#
#  Rules
#

RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
SMF 1.1 RC2 bridge 1.4

Orstio

OK, that's not good at all.  Here's what it should look like:


##
# @version $Id: htaccess.txt 1005 2005-11-13 17:33:59Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

Options +FollowSymLinks

#
#  mod_rewrite in use
#

RewriteEngine On

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update YourJoomlaDirectory (just / for root)

# RewriteBase /YourJoomlaDirectory

#
#  Rules
#

RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php


mojito

It works, thanks very much, i have no idea why my file was wrong.
www.roatan-diving.com
mojito
SMF 1.1 RC2 bridge 1.4

Advertisement: