Title: .htaccess Redirect
Last modified: August 20, 2016

---

# .htaccess Redirect

 *  [npolen](https://wordpress.org/support/users/npolen/)
 * (@npolen)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/)
 * I need to redirect old webpages (not created in WordPress) to the new wordpress
   home page (www.raminternationalcatering.com). I can’t seem to make the .htaccess
   file work because I am VERY NEW to the WordPress dashboard and how it works. 
   Could you help me out with some example code and where I am suppose to upload
   the file? Is it suppose to be in the wp-admin folder or the entire site folder
   or somewhere else? I have wp-admin, wp-content and wp-includes. Is there suppose
   to be code before I write ‘Redirect 301 /webpage.html [http://www.domain.com/newwebpage.html](http://www.domain.com/newwebpage.html).
 * Thanks!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642485)
 * Google is your friend…
    [http://ndesign-studio.com/blog/301-htaccess-redirect](http://ndesign-studio.com/blog/301-htaccess-redirect)
 *  Thread Starter [npolen](https://wordpress.org/support/users/npolen/)
 * (@npolen)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642499)
 * So, my code would like like in my .htaccess file…
 * Redirect [http://www.theram.com/catering.shtml](http://www.theram.com/catering.shtml)
   [http://www.raminternationalcatering.com](http://www.raminternationalcatering.com)
 * Correct? No code above or below the code typed out above?
 * Also, where I I upload my .htacess file?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642502)
 * Please re-read the instructions at the page I linked to above.
 *  Thread Starter [npolen](https://wordpress.org/support/users/npolen/)
 * (@npolen)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642508)
 * Hi, I am sorry but I am still having troubles. I have reread it and tried to 
   change my file. This is what I have in my .htaccess file…
 * Redirect 301 /www.theram.com/catering.shtml [http://www.raminternationalcatering.com/](http://www.raminternationalcatering.com/)
 * What is wrong? It doesn’t work when I click on the [http://www.theram.com/catering.shtml](http://www.theram.com/catering.shtml)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642511)
 * Try renaming catering.shtml
 *  Thread Starter [npolen](https://wordpress.org/support/users/npolen/)
 * (@npolen)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642517)
 * I am assuming you meant this…
 * Redirect 301 /catering.shtml [http://www.raminternationalcatering.com/](http://www.raminternationalcatering.com/)
 * This does not work, any other suggestions to get this to work?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642524)
 * No. Try renaming the file currently called catering.shtml
 *  Thread Starter [npolen](https://wordpress.org/support/users/npolen/)
 * (@npolen)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642528)
 * All due respect but, could you elaborate a little more as to why I should have
   to rename the file? In my other non-wordpress websites, I have not had to rename
   files in order to have the .htaccess file work properly. Thanks
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642631)
 * You’re trying to redirect a page that exists. It can cause issues.
 * `Redirect 301 catering.shtml http://www.raminternationalcatering.com/`
 * should be fine if the file does NOT exist.
 * The default WP .htaccess can be seen here: [http://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htaccess.29](http://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htaccess.29)
 * Put any redirects ABOVE that.
 *  [nicolaaa](https://wordpress.org/support/users/nicolaaa/)
 * (@nicolaaa)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642650)
 * I need to redirect old webpages (not created in WordPress) to the new wordpress
   home page (www.raminternationalcatering.com). I can’t seem to make the .htaccess
   file work because I am VERY NEW to the WordPress dashboard and how it works[.](http://www.lalinguaarabapertutti.com)
   Could you help me out with some example code and where I am suppose to upload
   the file? Is it suppose to be in the wp-admin folder or the entire site folder
   or somewhere else? I have wp-admin, wp-content and wp-includes. Is there suppose
   to be code before I write ‘Redirect 301 /webpage.html [http://www.domain.com/newwebpage.html](http://www.domain.com/newwebpage.html).
 * Thanks!
 * i think you can use short link redirection
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642675)
 * nicolaaa – You should really make your own topic, as this is a different situation.
 * You don’t upload pages into WP. They’re generated dynamically. Write a post (
   or a page). That gives you a permalink like domain.com/newpage
 * Then you put THAT info into your .htaccess:
 * `Redirect 301 /webpage.html http://www.domain.com/newwebpage`
 * If you need help understanding how to write pages and posts in WP, start [http://codex.wordpress.org/Writing_Posts](http://codex.wordpress.org/Writing_Posts)
 *  Thread Starter [npolen](https://wordpress.org/support/users/npolen/)
 * (@npolen)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642677)
 * Thanks for your help! I really messed up my files and cannot get to my dashboard
   and the website says 403 forbidden. I am awesome. Ha! I have someone else working
   on it now, so hopefully they can solve the mystery. 🙁

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

The topic ‘.htaccess Redirect’ is closed to new replies.

## Tags

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

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 12 replies
 * 4 participants
 * Last reply from: [npolen](https://wordpress.org/support/users/npolen/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/htaccess-redirect-6/#post-2642677)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
