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


Joined: 26 April 2010
Online Status: Offline
Posts: 13
Posted: 01 July 2010 at 9:04am | IP Logged Quote schwegweb

I need to rewrite my httpd.ini to a .htaccess file. can someone help me?

here is my httpd.ini file:

[ISAPI_Rewrite]

# For normal content & image files to go through
RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]

# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) $0 [I,L]
RewriteRule .*\.(?:jpg|gif|css|txt|xml|html) $0 [I,L]
RewriteRule /(?:images|previews|portfolio|oldsite)/.* $0 [I,L]
RewriteRule /favicon.ico /favicon.ico [L]
RewriteRule /robots.txt /robots.txt [L]

# For normal wordpress content, via index.php
RewriteRule .*\.html /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]


Thanks
Chris
Schwegweb
Back to Top View schwegweb's Profile Search for other posts by schwegweb
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 01 July 2010 at 9:52am | IP Logged Quote Anton

Please try to have this:

RewriteBase /
# For normal content & image files to go through
RewriteRule ([^.?]+[^.?/]) http\://%{HTTP_HOST}$1/ [R]

# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule ^wp-.*$ - [NC,L]
RewriteRule ^.*\.(?:jpg|gif|css|txt|xml|html)$ - [NC,L]
RewriteRule ^(?:images|previews|portfolio|oldsite)/.*$ - [NC,L]
RewriteRule ^favicon\.ico$ - [NC,L]
RewriteRule ^robots\.txt - [NC,L]

# For normal wordpress content, via index.php
RewriteRule ^.*\.html$ index.php [NC,L]
RewriteRule ^(.*)$ index.php/$1 [L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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