• 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)
  • Plugin Author WebFactory

    (@webfactory)

    WordPress doesn’t touch anything outside its block in htaccess. So if you put your code at the bottom of the file WP will def not touch it. Obviously, there might be a plugin that overwrites it or even the theme.
    If you just need to add some redirects use our redirect plugin – https://ww.wp.xz.cn/plugins/eps-301-redirects/

Viewing 1 replies (of 1 total)

The topic ‘Does changes I made get overwritten?’ is closed to new replies.