Proper way to forward to a subdirectory?

I’ve installed my store in a subdirectory of, for example, [url]http://www.domain.com/store/[/url]



I just want to know the proper way of forwarding people who go to http://www.domain.com to [url]http://www.domain.com/store/[/url]. Perhaps a search engine friendly way?



Right now i’m using a php 301 redirect. I just created a php file called index.php that contains the following code:


```php

Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.domain.com/store" );
?>

```



Is there a better way to do this?



Thanks!

Since you want to redirect domain.com to domain.com/store, why not just move the cart to the root directory?



Bob

[quote name=‘jobosales’]Since you want to redirect domain.com to domain.com/store, why not just move the cart to the root directory?



Bob[/quote]

Same thought