Forum Moderators: phranque

Message Too Old, No Replies

combine two .htaccess - please help!

two .htaccess

         

elvisjj

5:24 pm on May 12, 2008 (gmt 0)

10+ Year Member



Hi,
I need to combine two .htaccess files or commands into one .htaccess file. Please help me.

First
<IfModule mod_rewrite.c>
RewriteEngine Off
ErrorDocument 404 ../index.php
</IfModule>

Second
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) [example.*.example.hosting.com...] [R]

Thanks,
Elvis.

g1smd

8:44 pm on May 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I never like using a regular page from the site served as an ErrorDocument.

I'll let someone else comment on the rest of it.

elvisjj

12:41 am on May 13, 2008 (gmt 0)

10+ Year Member



Thanks g1smd