# .htaccess question

**URL:** <https://forum.kirupa.com/t/htaccess-question/329667>\
**Category:** web dev\
**Created:** [September 30, 2012, 12:36am UTC](https://forum.kirupa.com/t/htaccess-question/329667 "2012-09-30T00:36:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![audrys](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@audrys](https://forum.kirupa.com/u/audrys)\
**Post date:** [September 30, 2012, 12:36am UTC](https://forum.kirupa.com/t/htaccess-question/329667/1 "2012-09-30T00:36:51Z")

</div>

hi guys I was wondering if there is a way for me to accomplish this with just .htaccess file  
i want to redirect my website [www.mywebsite.com/folder](http://www.mywebsite.com/folder) to [www.mywebsite.com](http://www.mywebsite.com)

I am using joomla as main site however I also use open source gallery which resides in .com/folder so when i go to .com/folder it opens my gallery but I want to somehow to redirect the whole gallery to .com/mygallery where ‘mygallery’ is same as .com/folder

basically i use joomla’s wrapper to include my gallery [from.com/folder](http://from.com/folder)

thanks for any advice
