PDA

View Full Version : Mambo SEO help


Toranaga
08-30-2006, 09:55 AM
So this is your basic .htaccess file:
# $Id: htaccess.txt,v 1.10 2003/12/22 10:37:29 rcastley Exp $
#
# htaccess file for SEF
# @package Mambo Open Source
# @Copyright (C) 2000 - 2003 Miro International Pty Ltd
# @ All rights reserved
# @ Mambo Open Source is Free Software
# @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
# @version $Revision: 1.10 $

#
# mod_rewrite in use
#

#Option +FollowSymLinks
RewriteEngine On

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

RewriteBase /index.php

#
# Rules
#
#mambo rules
#RewriteRule ^content(.*) /index.php
#RewriteRule ^component/(.*) /index.php
#RewriteRule ^component/(.*)/([^0-9]{1,})/index.php?option=$1$itemid=$2

#SEF 404
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php

wich on the original site ( www.miu.ro ) works just fine as u can very easily see, but here, http://70.103.16.155/~miuro/ it seems to be repeating the ~miuro/ part indeffinately thus failing at doing it's job.

Any means to make it work or should I forget the search friendly url's?
Any help would be appreciated as I've not found something similar through the search function. Thank you.

gisindo
08-31-2006, 07:39 AM
IMO it will only work under root folder of your website, you have to choose wether in root folder or subfolder. set on this line
RewriteBase /index.php for root folder, and
RewriteBase /subfolder/index.php for subfolder

Basil
08-31-2006, 01:06 PM
That's awesome.