Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: RobbieB - toukokuu 26, 2006, 06:36:52 IP

Otsikko: Search Engine Friendly URLS
Kirjoitti: RobbieB - toukokuu 26, 2006, 06:36:52 IP
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.
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: Orstio - toukokuu 26, 2006, 08:38:50 IP
Yes.  Turn on SEF in Joomla, not in SMF.
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: RobbieB - toukokuu 30, 2006, 06:57:12 IP
Will the fact that Joomla also has it turned on cause any problems though?
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: Orstio - toukokuu 30, 2006, 08:12:09 IP
Turning on SEF in Joomla is fine.

Turn it off in SMF.
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: RobbieB - toukokuu 31, 2006, 04:46:29 IP
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.
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: mojito - kesäkuu 27, 2006, 11:51:04 AP
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
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: Orstio - kesäkuu 27, 2006, 05:45:31 IP
What is the contents of your .htaccess file?
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: mojito - kesäkuu 28, 2006, 10:27:44 AP
##
# @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
Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: Orstio - kesäkuu 28, 2006, 05:40:04 IP
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

Otsikko: Re: Search Engine Friendly URLS
Kirjoitti: mojito - kesäkuu 29, 2006, 10:26:45 AP
It works, thanks very much, i have no idea why my file was wrong.
www.roatan-diving.com
mojito