Support » Plugin: Htaccess File Editor - Safely Edit Htaccess File » Does changes I made get overwritten?

  • Resolved shenkwen

    (@shenkwen)


    I have tried directly editing .htaccess file from FTP. I added a line right after RwriteEngine On, but it get overwritten several days later.

    Now I have edited the .htaccess file using your plugin, so it looks like

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^apply\/? https://docs.google.com/forms/d/e/1FAIpQLSf5IrOhg0E_NAGZnOvMuaXhU80sio8bukaWVBkb87eEOa9kTw/viewform [L]
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    I think it will get overwritten too.
    You can see I simply want to redirect mystie.com/apply to a google form, but I can’t simply added outside the wordpress block, because

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    will take over before it gets to my rule. How should I do this then?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Does changes I made get overwritten?’ is closed to new replies.