The Joomla! Forum ™



Forum rules


Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks

This forum section will be closed and removed eventually.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sat Nov 04, 2006 10:23 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Aug 29, 2005 10:17 am
Posts: 11989
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Many problems with SEO arise from the fact that a host has not enabled mod_rewrite (Apache setting) on the servers. They often tell they have (while they don't have) and you can verify if this is correct or not and if this is causing you Error 500 etc.

Here is how to check if mod-rewrite is realy enabled!

..Enable SEO in your administrator! (administrator> SEO > enable > save)

..Rename your htaccess.txt to .htaccess !!

Next place ONLY the following lines in your .htaccess:
Code:
Options +FollowSymLinks
Redirect /joomla.html http://www.joomla.org


Now point your browser to: http://www.mysite.com/joomla.html

If it redirects you to joomla.org - mod_rewrite is working.
If it gives you an error - mod_rewrite is not working.

note: if your site is located in subdomain example "test" you need to insert in .htaccess as:
Code:
Options +FollowSymLinks
Redirect /test/joomla.html http://www.joomla.org

note: replace the http://www.mysite.com with your own domain in your browser!

cheers
Leo

note: originally posted by Kenmcd on open-sef forum and modified/enhanced for general use

_________________
--- Joomla Professional Support Services :: http://gws-desk.com ---
--- Joomla Professional and Specialized Hosting :: http://gws-host.com ---
--- Ready to Roll Joomla! Web Sites : 1 - 7 days only! :: @ gws-market.com ---


Last edited by leolam on Sat Nov 04, 2006 10:29 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue May 01, 2007 6:02 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Wed Mar 22, 2006 5:58 pm
Posts: 313
hey! well - good news it forwards me to joomla.org

so what next!?


Top
 Profile  
 
PostPosted: Sun Apr 13, 2008 3:48 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Apr 13, 2008 3:38 am
Posts: 2
Thanks :D


Top
 Profile  
 
PostPosted: Sat Jul 19, 2008 2:29 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 23, 2008 4:20 pm
Posts: 25
Location: Netherlands
In the .htaccess

I have to opt out this: Otherwise my site goes blanc
## Can be commented out if causes errors, see notes above.
#Options +FollowSymLinks

I did put in your suggestion:
Options +FollowSymLinks
Redirect /joomla.html http://www.joomla.org
This gives me a 500 message

does this mean I can't use mod_rewrite
I can't use SEF ??

(I strugled for a long time with SEF joomla core but always it makes the wrong URLs)


Top
 Profile  
 
PostPosted: Sat Jul 19, 2008 3:32 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Wed Jan 18, 2006 4:40 am
Posts: 762
This is an easier way - add this to the end of your .htaccess file:-
Code:
RewriteRule (.*) http://google.com


Save it to your server and then try and navigate to your site - any page - they should all be redirected to google....IF mod_rewrite is working....

_________________
Snadowitz


Top
 Profile  
 
PostPosted: Sat Jul 19, 2008 3:42 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 23, 2008 4:20 pm
Posts: 25
Location: Netherlands
I did put in as you said: RewriteRule (.*) http://google.com

This gave me: Error: Host Not Accessible

I think I have to go over to an other hosting firm in order to make SEF work ????


Top
 Profile  
 
PostPosted: Sat Jul 19, 2008 5:01 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Aug 29, 2005 10:17 am
Posts: 11989
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
you did not do what i mentioned in the first post......check if your mod_rewrite is enabled which you can do by only inserting that little piece of code and nothing else...follow instructions maybe? ???

Leo 8)

_________________
--- Joomla Professional Support Services :: http://gws-desk.com ---
--- Joomla Professional and Specialized Hosting :: http://gws-host.com ---
--- Ready to Roll Joomla! Web Sites : 1 - 7 days only! :: @ gws-market.com ---


Top
 Profile  
 
PostPosted: Sat Jul 19, 2008 6:51 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 23, 2008 4:20 pm
Posts: 25
Location: Netherlands
Sorry leolam, but I did put in earlier your first tip,ONLY put in
Options +FollowSymLinks
Redirect /joomla.html http://www.joomla.org
This gives a 500 message

when i use Option "FollowSymLinks" it gives me always blanco pages

BTW is there a SEF solution without using mod_rewrite ???

I have in a subdomain (same server) phpfox with full SEF running :'(
In this sub domain i have .htaccess with RewriteEngine On
I don't know why this is all happening to me


Top
 Profile  
 
PostPosted: Sun Jul 20, 2008 2:28 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Mon Aug 29, 2005 10:17 am
Posts: 11989
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
dingo1234 wrote:
BTW is there a SEF solution without using mod_rewrite ???
SH404SEF

_________________
--- Joomla Professional Support Services :: http://gws-desk.com ---
--- Joomla Professional and Specialized Hosting :: http://gws-host.com ---
--- Ready to Roll Joomla! Web Sites : 1 - 7 days only! :: @ gws-market.com ---


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 0 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® Forum Software © phpBB Group