# I need help to create 302 redirect code for Rapidweaver 8

**URL:** <https://forums.realmacsoftware.com/t/i-need-help-to-create-302-redirect-code-for-rapidweaver-8/27229>\
**Category:** RapidWeaver Classic\
**Created:** [June 11, 2019, 4:38am UTC](https://forums.realmacsoftware.com/t/i-need-help-to-create-302-redirect-code-for-rapidweaver-8/27229 "2019-06-11T04:38:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewYorkGrill](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NewYorkGrill](https://forums.realmacsoftware.com/u/NewYorkGrill)\
**Post date:** [June 11, 2019, 4:38am UTC](https://forums.realmacsoftware.com/t/i-need-help-to-create-302-redirect-code-for-rapidweaver-8/27229/1 "2019-06-11T04:38:32Z")

</div>

Hello everyone,

I am new at using Rapidweaver 8 and recently change a blog URL path and would like a sample 302 redirect code to include inside RapidWeaver so when someone clicks on the old URL, they are automatically redirected to the new URL.

For example, when someone clicks on [http://mywebsite.com/OLD-URL](http://mywebsite.com/OLD-URL), they are automatically redirected to [http://mywebsite.com/NEW-URL](http://mywebsite.com/NEW-URL).

I would appreciate any suggestions that I can use for my website that was built with Rapidweaver 8.

Thank you in advance,

David

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [June 11, 2019, 11:20am UTC](https://forums.realmacsoftware.com/t/i-need-help-to-create-302-redirect-code-for-rapidweaver-8/27229/2 "2019-06-11T11:20:47Z")

</div>

There’s different ways to do redirects depending on the hosting company you are using. The most common way is with an .htaccess file if your host is using Apache web server and supports that.

RW8 has a built-in htaccess editor inside the publishing settings.  
The htaccess file supports varieties of ways to redirect a URL’s depending on what and where you want to redirect and what return code if any you want issued.

Your post title indicates you want a **temporary(302)** redirect. The obscure example you gave makes it difficult to give you a best answer but the simplest type of redirect with Apache htaccess would be a single line alias redirect.

```auto
Redirect 302 /path/to/old/file/old.html /path/to/new/file/new.html

```

You can search the Internet for more information, an example page

> **[How can I redirect and rewrite my URLs with an .htaccess file?](https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file)**
>
>  
> Creating an .htaccess file on your DreamHost web server
> 
> View the following article for instructions on how to create an .htaccess file on your web server:
> 
> Creating an .htaccess file on your Dre...

---

<div class="post-metadata">

**Author:** ![NewYorkGrill](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NewYorkGrill](https://forums.realmacsoftware.com/u/NewYorkGrill)\
**Post date:** [June 12, 2019, 2:49am UTC](https://forums.realmacsoftware.com/t/i-need-help-to-create-302-redirect-code-for-rapidweaver-8/27229/3 "2019-06-12T02:49:40Z")

</div>

Thank you very much Doug and will confirm with the hosting company if they use Apache web server. I suspect they do because they edited my .htaccess file to redirect http:// -\> secured https://

I noticed my mistake and wanted a “permanent” redirect so I am assuming I should use Redirect 301 for this to happen.

Thanks again Doug and will give this a try today.

Best,

David

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [July 12, 2019, 12:49pm UTC](https://forums.realmacsoftware.com/t/i-need-help-to-create-302-redirect-code-for-rapidweaver-8/27229/4 "2019-07-12T12:49:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
