Title: Folder
Last modified: October 30, 2017

---

# Folder

 *  [gatomadrid](https://wordpress.org/support/users/gatomadrid/)
 * (@gatomadrid)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/folder-4/)
 * Hello
    I would like to create a new page. I would like to install in my hosting
   inside the directory: “/web” but i would like that instead of accessing my website
   as [http://midominio.es/web/index.php](http://midominio.es/web/index.php) i would
   like to access as [http://midominio/index.phph](http://midominio/index.phph) 
   and that the user won´t see the “web” in the url.
 * Is that possible?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Armando Duran](https://wordpress.org/support/users/armandoduran/)
 * (@armandoduran)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/folder-4/#post-9631091)
 * **Method I** as explained in “[Giving WordPress Its Own Directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)”
   may be what you are looking for.
 * Here are the steps:
    1. After Installing the wordpress in root folder, move EVERYTHING from root folder
       into subdirectory.
    2. Create a `.htaccess` file in root folder, and put this content inside (just 
       change example.com and my_subdir):
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteCond %{HTTP_HOST} ^(www.)?example.com$
       RewriteCond %{REQUEST_URI} !^/my_subdir/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^(.*)$ /my_subdir/$1
       RewriteCond %{HTTP_HOST} ^(www.)?example.com$
       RewriteRule ^(/)?$ my_subdir/index.php [L] 
       </IfModule>
       ```
   
 *  Thread Starter [gatomadrid](https://wordpress.org/support/users/gatomadrid/)
 * (@gatomadrid)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/folder-4/#post-9637204)
 * Hello,
 *  I try without sucess:
 * # BEGIN WordPress
    <IfModule mod_rewrite.c>
 * RewriteEngineRewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?sub.dominio.com
   $ RewriteCond %{REQUEST_URI} !^/web/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond%{
   REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /web/$1 RewriteCond %{HTTP_HOST} ^(www.)?
   sub.dominio.com$ RewriteRule ^(/)?$ web/index.php [L] </IfModule>
 * # END WordPress
 * the result is:
 *  “GET / HTTP/1.1” 500 1622 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0)
   Gecko/20100101 Firefox/56.0”
 *  [Armando Duran](https://wordpress.org/support/users/armandoduran/)
 * (@armandoduran)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/folder-4/#post-9638209)
 * You may have more than one .htaccess file.
 * Make sure the file is on the root folder and not on /web
 *  Thread Starter [gatomadrid](https://wordpress.org/support/users/gatomadrid/)
 * (@gatomadrid)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/folder-4/#post-9641111)
 * I´ve got just one in the root folder.
 * what can be wrong? i don´t understand the sintax of this file.
 *  Thread Starter [gatomadrid](https://wordpress.org/support/users/gatomadrid/)
 * (@gatomadrid)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/folder-4/#post-9651924)
 * Can anyone help me?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Folder’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [gatomadrid](https://wordpress.org/support/users/gatomadrid/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/folder-4/#post-9651924)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
