Title: htaccess wordpress=mod rewrite
Last modified: August 19, 2016

---

# htaccess wordpress=mod rewrite

 *  [pawciak](https://wordpress.org/support/users/pawciak/)
 * (@pawciak)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/htaccesswordpressmod-rewrite/)
 * To be honest im a newbie with htaccess. I have some problems with it – especially
   with mod rewrite but lets start from the begining. my public_html looks like 
   that:
    +wp +images index.html 404.html … main.html .htaccess
 * and of course the wp directory is the one with WP. I want to have a start page
   with different name than index – in my case it is main.html so i added a line
   to htaccess:
    DirectoryIndex main.html And it should works but.. I have a menu
   bar in this file(main.html) with links to pages in my wordpress so they looks
   like that: wp/index.php wp/index.php?id=4 … and in theory it should works.but
   only in theory. When you will click on that link nothing will change. URL in 
   web browser will change for example: mydomain.com/?id=4 but this is only thing
   which is changing – the url in browser but pages dont appear. so i think there
   is a problem with connection with my index.php file in wp directory. the worst
   thing is that with this htaccess with directoryindex main.html don’t work wp-
   admin and there are problems with images. So how to fix this problem how to write
   correct htaccess? The most important thing to me is redirection of url. I dont
   want to move wordpress from wp dir to root – i want to have that when you will
   type in browser [http://www.mydomain.com](http://www.mydomain.com) url only with
   files like index etc. I dont want to see [http://www.mydomain.com/wp/&#8230](http://www.mydomain.com/wp/&#8230);
   how to do it;/?

Viewing 1 replies (of 1 total)

 *  [sina-m](https://wordpress.org/support/users/sina-m/)
 * (@sina-m)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/htaccesswordpressmod-rewrite/#post-1072341)
 * Question is why you install it in “wp” directory when you able install it in 
   your root directory?
 * it better you move your directory from wp to your root directory.
 * **or test it:**
    ########################## Options +FollowSymlinks RewriteEngine
   On
 * DirectoryIndex main.html
    ##########################

Viewing 1 replies (of 1 total)

The topic ‘htaccess wordpress=mod rewrite’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [modrewrite](https://wordpress.org/support/topic-tag/modrewrite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [sina-m](https://wordpress.org/support/users/sina-m/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/htaccesswordpressmod-rewrite/#post-1072341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
