Hack: SEO on IIS

Moderator: mcsmom

Post Reply
User avatar
rabol
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Aug 27, 2005 11:51 am
Location: Dane in Kiev, Ukraine

Hack: SEO on IIS

Post by rabol » Wed Sep 07, 2005 10:54 am

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
Last edited by kenmcd on Fri Oct 28, 2005 2:23 pm, edited 1 time in total.

User avatar
bluesaze
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Mon Sep 05, 2005 6:18 am
Location: India
Contact:

Re: SEO on IIS

Post by bluesaze » Wed Sep 07, 2005 2:11 pm

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
A. N. Jacob-New
The Tech & Design Blog http://www.Clazh.com

User avatar
rabol
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Aug 27, 2005 11:51 am
Location: Dane in Kiev, Ukraine

Re: SEO on IIS

Post by rabol » Wed Sep 07, 2005 2:16 pm

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

stuclark

Re: SEO on IIS

Post by stuclark » Sat Oct 08, 2005 11:13 am

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?

Fowler21

Re: Hack: SEO on IIS

Post by Fowler21 » Thu Oct 19, 2006 7:36 pm

Where should I paste these rewrite rules..?

.htaccess or ?
Last edited by Fowler21 on Thu Oct 19, 2006 8:44 pm, edited 1 time in total.


Post Reply