views:

172

answers:

5

I have a website and want to redirect all its pages to posts on my blog. I browsed through my website folder but could not find the '.htaccess' file. Is it provided by the web hosting or can I create my own and use it? Can it be only used with Apache server.

If that's not possible what other option do I have for redirection.

Janice

+1  A: 

You create your own .htaccess, by simply opening a document and saving it as .htaccess.

You'll want something like this in it:

RewriteEngine on
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
+1  A: 

Perhaps you just don't see the .htacces file. The dot at the beginning of the file name indicates that this is a hidden file and will not be displayed normally.

Juri Glass
A: 

If you don't want to mess around with editing your .htaccess file, Redirection is a good Wordpress plugin that handles 301 redirects, logs, etc. and is easy to use.

songdogtech
A: 

.htaccess is for Apache only, other web servers have their own methods of configuration and do not use .htaccess files.

Palo Verde
A: 

Since this is tagged "Wordpress" maybe you are using that? Wordpress will create one after you've turn on pretty permalinks.

Soska