Customizing SMF > Joomla Bridge Support
Joomla/SMF: Login Integration Fine, but 404's in SMF...
Orstio:
So, is this what you did?:
Renamed htaccess.txt to oldhtaccess-orig.txt.
Deleted oldhtaccess-orig.txt.
The devs at Joomla tried to make this as painless as possible. All you ever need to do to enable SEF is check the option in your admin panel, and rename the file htaccess.txt to .htaccess. The file htaccess.txt has everything needed to make SEF work, except it is given the wrong filename (on purpose, in case you don't want, or cannot use SEF.)
The contents of htaccess.txt look like this:
--- Code: ---##
# @version $Id: htaccess.txt,v 1.5 2005/01/22 23:00:27 spacemonkey Exp $
# @package Mambo
# @copyright (C) 2000 - 2005 Miro International Pty Ltd
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Mambo is Free Software
##
#
# mod_rewrite in use
#
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
--- End code ---
As long as that is in a file called .htaccess, SEF should work. So, from a clean start, all you need to do is rename the file.
At this point, I am thinking what you will need to do is copy the above code, and paste it into the file called .htaccess.
toob:
Well, had the enabling SEF via the Joomla panel worked, I would not be here now :D
Here is the text that is in my .htaccess file:
--- Code: ---##
# @version $Id: htaccess.txt 423 2005-10-09 18:23:50Z 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
##
#
# mod_rewrite in use
#
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)
# RewriteBase /YourJoomlaDirectory
#
# Rules
#
--- End code ---
That is the original .htaccess file.
That is the image of the file in my server. It is in the main Joomla directory. Note there is no .txt at the end, etc.
That is obviously the control panel showing that it is enabled. I have tried both making it unwriteable and writeable when saving. I have also tried it by taking out the comment in front of
--- Code: ---# RewriteBase /YourJoomlaDirectory
--- End code ---
This is why I feel like such an idiot.......
--Melissa
Kindred:
you need the bit at the end....
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
otherwise, even with rewrite turned on, the system won't have any rules to apply!
c3sniper:
After searching and searching the internet...I came across this post. Thankfully! I was having the same issues with .htaccess and had no idea what was to go in the file. Thank you to everyone who posted here - because it saved me sooooo much headache with those darn 404's!!!
Thank you again.
V-
Navigation
[0] Message Index
[*] Previous page
Go to full version