Topic: Rewrite httpd.ini to htaccess file
|

|
| Author |
|
schwegweb Newbie

Joined: 26 April 2010
Online Status: Offline Posts: 13
|
| Posted: 01 July 2010 at 9:04am | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 01 July 2010 at 9:52am | IP Logged
|
|
|
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 |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|