View Single Post
Old 2009-10-20, 04:19 PM   #8
Tommy
NYC Boy That Moved To The Island
 
Join Date: Apr 2003
Posts: 2,940
Send a message via ICQ to Tommy
Quote:
Originally Posted by cd34 View Post

Or, do you want to hit http://blog.com/main.html and have the blog show up?

Code:
RewriteEngine on
RewriteRule ^main.html$ index.php [L]

yes thats what i want
http://www.blog.com/main.html and have the blog show up

but when i added the code to the htaccess it didnt work. it gave me the word press 404 page

and the root of the domain still loads index.php

this is what i got in the htaccess file

RewriteEngine on
RewriteRule ^main.html$ index.php [L]
RewriteOptions inherit

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com [NC]
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpe|jpg)$ http://www.domain.com/ [NC,R,L]




# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
__________________
Accepting New partners
Tommy is offline   Reply With Quote