Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Convert .htaccess to httpd.ini Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Rein
Newbie
Newbie


Joined: 27 January 2010
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 27 January 2010 at 7:40am | IP Logged Quote Rein

Could anyone help me to convert .htaccess to httpd.ini? The hosting provider doesn't work with .htaccess. They told me to use httpd.ini instead. I know I must use the isapirewrite. And I tried to convert it myself, but it just won't work.

This is the .htaccess;

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^(about|downloads)/?$ index.php?x=$1
RewriteRule ^browse/?$ index.php?x=browse
RewriteRule ^browse/([1-9][0-9]*)/?$ index.php?x=browse&pagenum=$1
RewriteRule ^browse/category/([1-9][0-9]*)/?$ index.php?x=browse&category=$1
RewriteRule ^browse/category/([1-9][0-9]*)/([1-9][0-9]*)/?$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4&pagenum=$5
RewriteRule ^browse/tag/([^/]+)/?$ index.php?x=browse&tag=$1
RewriteRule ^browse/tag/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&tag=$1&pagenum=$2
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^(p|photo)/([0-9]+)$ index.php?showimage=$2
RewriteRule ^(p|photo)/([0-9]+)/rating/([1-5])$ index.php?showimage=$2&rating=$3
RewriteRule ^t/latest/?$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1
</IfModule>

Back to Top View Rein's Profile Search for other posts by Rein
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3163
Posted: 27 January 2010 at 8:10am | IP Logged Quote AndrushkaUS

It's not only the matter of content, its a matter of ISAPI_rewrite manager. HAve you changed the settings?

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
Rein
Newbie
Newbie


Joined: 27 January 2010
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 27 January 2010 at 1:14pm | IP Logged Quote Rein

My hosting provider told me they have Isapi Rewrite module 2 running
Back to Top View Rein's Profile Search for other posts by Rein
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3163
Posted: 28 January 2010 at 3:47am | IP Logged Quote AndrushkaUS

Well, ok,
let try using this one:

Code:
[ISAPI_Rewrite]
RewriteRule /(about|downloads)/? /index.php\?x=$1 [I,L]
RewriteRule /browse/? /index.php\?x=browse [I,L]
RewriteRule /browse/([1-9][0-9]*)/? /index.php\?x=browse&pagenum=$1 [I,L]
RewriteRule /browse/category/([1-9][0-9]*)/? /index.php\?x=browse&category=$1 [I,L]
RewriteRule /browse/category/([1-9][0-9]*)/([1-9][0-9]*)/? /index.php\?x=browse&category=$1&pagenum=$2 [I,L]
RewriteRule /browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/? /index.php\?x=browse&archivedate=$1$2-
$3&monthname=$4 [I,L]
RewriteRule /browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/([1-9][0-9]*)/? /index.php\?
x=browse&archivedate=$1$2-$3&monthname=$4&pagenum=$5 [I,L]
RewriteRule /browse/tag/([^/]+)/? /index.php\?x=browse&tag=$1 [I,L]
RewriteRule /browse/tag/([^/]+)/([1-9][0-9]*)/? /index.php\?x=browse&tag=$1&pagenum=$2 [I,L]
RewriteRule /comment/submit /index.php\?x=save_comment [I,L]
RewriteRule /comment/([0-9]+) /index.php\?popup=comment&showimage=$1 [I,L]
RewriteRule /(p|photo)/([0-9]+) /index.php\?showimage=$2 [I,L]
RewriteRule /(p|photo)/([0-9]+)/rating/([1-5]) /index.php\?showimage=$2&rating=$3 [I,L]
RewriteRule /t/latest/? /index.php\?showthumb=latest&thumbtag=image [I,L]
RewriteRule /feeds/(rss|atom).xml /index.php?x=$1 [I,L]


__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 
Rein
Newbie
Newbie


Joined: 27 January 2010
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 28 January 2010 at 4:10am | IP Logged Quote Rein

You are the best!! It works.. thanks, you made my day!
Back to Top View Rein's Profile Search for other posts by Rein
 
aussie98
Newbie
Newbie


Joined: 09 February 2010
Online Status: Offline
Posts: 1
Posted: 09 February 2010 at 8:47pm | IP Logged Quote aussie98

I'm wondering if you could help me too. My webhost uses IIS 6.0 and has advised that I can use .httpd.ini for rewriting purposes. I have a joomla site and have had to disable the .htaccess file. Could someone please advise as to how I enable SE friendly urls? I am not technical enough to understand the results that google has thrown up! So a step by step instruction, on what I need to download, change, or advice that it's something I probably shouldn't attempt to do myself, would be much appreciated!

I am happy to consider changing host if this is the best solution.

Thanks in anticipation!
Back to Top View aussie98's Profile Search for other posts by aussie98
 
AndrushkaUS
Admin Group
Admin Group


Joined: 13 November 2009
Location: United States
Online Status: Offline
Posts: 3163
Posted: 10 February 2010 at 3:56am | IP Logged Quote AndrushkaUS

We strongly recommend to use ISAPI_Rewrite v3 with Joomla.
Here is Joomla+ISAPI_Rewrite3 installation article.
Here is the list of ISAPI_Rewrite3 supported hostings.

Regards
Andrew

__________________
The will to conquer is the first condition of VICTORY
Back to Top View AndrushkaUS's Profile Search for other posts by AndrushkaUS
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum