Title: .htaccess generation issues
Last modified: August 22, 2016

---

# .htaccess generation issues

 *  [intelligentDesign](https://wordpress.org/support/users/intelligentdesign/)
 * (@intelligentdesign)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-generation-issues/)
 * Hi Stephanie,
 * There are some issues with the .htaccess redirect that are annoying. Don’t get
   me wrong–I’d rather shift a few lines around there than copy-paste hundreds of
   html files:
 * The first one probably doesn’t matter but it was the first thing I checked when
   I got a 500 server error from the file.
    1. The syntax used is different than the [Apache specification](http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect)
    2. > Redirect [status] URL-path URL
    3.  which may or may not cause issues
    4. It doesn’t urlencode the old file names. This was a definite cause of the 500
       error. I had a space of some sort in a file or directory name.
    5. It creates redirects for directories that go to–THE SAME LOCATION (redirect 
       loops) whenever the old directory name is an acceptable WordPress slug.
    6. For the directories that I would want redirected to a new WordPress slug (and
       thus I leave the redirect in .htaccess), it is in the wrong order. For example,
       `
       Redirect permanent /archive_for_articles/ http://21tnt.com/archive-for-articles/`(
       spec syntax) is before `Redirect permanent /archive_for_articles/kickme.htm 
       http://21tnt.com/archive-for-articles/kick-me-hard/` , so when I go to `/archive_for_articles/
       kickme.htm`, I’m met with a 404 error page and a URL of `http://21tnt.com/archive-
       for-articles/kickme.htm`, which is not and should not be in .htaccess.
 * For bigger imports, it’s a lot of work to correct these things, and for non-geeks,
   it’s a big deal.
 * In spite of these, thanks for a truly great plugin
 * -g
 * [https://wordpress.org/plugins/import-html-pages/](https://wordpress.org/plugins/import-html-pages/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-generation-issues/#post-5827284)
 * Thanks! I’ll try to get those corrected.

Viewing 1 replies (of 1 total)

The topic ‘.htaccess generation issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/import-html-pages.svg)
 * [HTML Import 2](https://wordpress.org/plugins/import-html-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-html-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-html-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/import-html-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-html-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-html-pages/reviews/)

## Tags

 * [500 error](https://wordpress.org/support/topic-tag/500-error/)
 * [redirect loop](https://wordpress.org/support/topic-tag/redirect-loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/htaccess-generation-issues/#post-5827284)
 * Status: not resolved