Hi
I have just found this GREATE ISAPI
http://cheeso.members.winisp.net/dl/Ion ... writer.zip
It let's you use SEO on IIS!!
Here is the rules to make a "out of the box" Mamabo/Joomla running with SEO turned on.
# Joomla/Mambo rewrite rules
RewriteRule ^/$ /index.php
RewriteRule ^/([^/]+)/blogsection/([^/]+)/([^/]+)/ /index.php?option=com_$1&task=blogsectiony&id=$2&Itemid=$3
RewriteRule ^/content/section/([^/]+)/([^/]+)/ /index.php?option=com_content&task=section&id=$1&Itemid=$2
RewriteRule ^/component/option,([^/]+)/([^/]+),([^/]+)/([^/]+),([^/]+)/([^/]+),([^/]+) /index.php?option=$1&$2=$3&$4=$5&$6=$7
RewriteRule ^/component/option,([^/]+)/([^/]+),([^/]+)/ /index.php?option=$1&$2=$3
RewriteRule ^/content/category/([^/]+)/([^/]+)/([^/]+)/ /index.php?option=com_content&task=category§ionid=$1=&id=$2&Itemid=$3
RewriteRule ^/content/view/([^/]+)/([^/]+)/([^/]+)/([^/]+)/ /index.php?option=com_content&task=view&id=$1&Itemid=$2&limit=$3&limitstart=$4
RewriteRule ^/content/view/([^/]+)/([^/]+)/ /index.php?option=com_content&task=view&id=$1&Itemid=$2
I'm not deep into regular expression, so I assume that the above can be optimized - but it works
Plese let me know if you optimize or find any improvements.
Best
Steen
Hack: SEO on IIS
Moderator: mcsmom
Hack: SEO on IIS
Last edited by kenmcd on Fri Oct 28, 2005 2:23 pm, edited 1 time in total.
Re: SEO on IIS
Hi,
Nice find......... but people who are hosting on some else server wont be able use it right ? Or can they .... I found the following thread in the forum ........ http://forum.opensourcematters.org/index.php/topic,1094.0.html
It seems you can enable search engine optimization without the need for any rewrite filter.....
I havent tried it yet but a number of people have tried it and it seems it works
Nice find......... but people who are hosting on some else server wont be able use it right ? Or can they .... I found the following thread in the forum ........ http://forum.opensourcematters.org/index.php/topic,1094.0.html
It seems you can enable search engine optimization without the need for any rewrite filter.....
I havent tried it yet but a number of people have tried it and it seems it works
Re: SEO on IIS
Hi
You are correct, you need to install it on the server, but..
It comes with full source, so I assume (hope) that a hosting company will install it.
It can be installed pr. virtual server or global.
Best
Steen
PS. I've created an "optimized" version:
RewriteRule ^/$ /index.php
RewriteRule ^/content/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/ /index.php?option=com_content&task=$1&id=$2&Itemid=$3&limit=$4&limitstart=$5
RewriteRule ^/content/([^/]+)/([^/]+)/([^/]+)/ /index.php?option=com_content&task=$1&id=$2&Itemid=$3
RewriteRule ^/component/option,([^/]+)/([^/]+),([^/]+)/([^/]+),([^/]+)/([^/]+),([^/]+) /index.php?option=$1&$2=$3&$4=$5&$6=$7
RewriteRule ^/component/option,([^/]+)/([^/]+),([^/]+)/ /index.php?option=$1&$2=$3
You are correct, you need to install it on the server, but..
It comes with full source, so I assume (hope) that a hosting company will install it.
It can be installed pr. virtual server or global.
Best
Steen
PS. I've created an "optimized" version:
RewriteRule ^/$ /index.php
RewriteRule ^/content/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/ /index.php?option=com_content&task=$1&id=$2&Itemid=$3&limit=$4&limitstart=$5
RewriteRule ^/content/([^/]+)/([^/]+)/([^/]+)/ /index.php?option=com_content&task=$1&id=$2&Itemid=$3
RewriteRule ^/component/option,([^/]+)/([^/]+),([^/]+)/([^/]+),([^/]+)/([^/]+),([^/]+) /index.php?option=$1&$2=$3&$4=$5&$6=$7
RewriteRule ^/component/option,([^/]+)/([^/]+),([^/]+)/ /index.php?option=$1&$2=$3
Re: SEO on IIS
This works great for Joomla itself, but unfortunately won't work with two of my most important components - namely Mambo-phpShop and SMF.
For these components, if I manually add a index.php?/ statement into the beginning of the URL (immediately after the domain name) then they work. I wonder, could anyone write a rewrite rule to take this into account for these components?
For these components, if I manually add a index.php?/ statement into the beginning of the URL (immediately after the domain name) then they work. I wonder, could anyone write a rewrite rule to take this into account for these components?
Re: Hack: SEO on IIS
Where should I paste these rewrite rules..?
.htaccess or ?
.htaccess or ?
Last edited by Fowler21 on Thu Oct 19, 2006 8:44 pm, edited 1 time in total.