Edit an .htaccess File
Use RapidWeaver's built-in publishing engine to edit files on your web server.
Last updated
Use RapidWeaver's built-in publishing engine to edit files on your web server.
Last updated
To edit a .htaccess file, go to your publishing setup in RapidWeaver, and towards the bottom of the panel, you'll see a button named "Edit .htaccess File" — This will search for your .htaccess file on your web server and preset it in a window ready for editing.
From here you can make changes to your .htaccess file, along with adding a comment for the change you are about to make.
You can roll back to a previous .htaccess file by using the Versions" drop-down menu in the editor window.
Here's an example of redirecting a page. The following code will redirect users trying to access the "/original-page/" to the "/new-page/".
If we added the above code to the Realmac Software .htaccess file it would redirect users from this page: https://www.realmacvsoftware.com/original-page/ to this page: https://www.realmacvsoftware.com/new-page/
The following example will redirect all subpage URLs from the "/helpdesk/" folder to /support.
A 301 redirect is a permanent redirect to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.