I need .htaccess help. (because I too stupid to understand it)

Status
Not open for further replies.

strange night

Active Member
36
2013
5
0
Hello,

Here's is what I need to do but I have NO IDEA how to go about it.

I need to

1) redirect one domain towards another doman.
2) Make the redirection work for everybody but not for me (This way I can work on the blog while everyone else is redirected)

I've read half of one book on apache server and then I started looking for apache server for dummies.
I don't know I think I'm missing some brain cells because I might as well be trying to read ancient Egyptian hieroglyphs..
Because none of it makes any sense to me.


Thanks to everyone that reads this and tries to help me.
 
5 comments
Post your htaccess code.

This is what I'm using now

RewriteEngine on
RewriteCond %{HTTP_HOST} ^calisto9\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.calisto9\.com$
RewriteRule ^(.*)$ "http\:\/\/calisto9\.com\/$1" [R=301,L]

Something like this?
How to redirect all visitors except your IP to another website?
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1

RewriteCond %{REQUEST_URI} !/mypage\.html$  

RewriteRule .* [URL]http://www.anothersite.com/mypage.html[/URL] [R=302,L]

Let me give that a try.
 
Status
Not open for further replies.
Back
Top