To edit .htaccess in WordPress, access the file via an FTP client or File Manager, then make changes using a text editor. It's important to back up the file before editing and to use proper syntax to avoid errors.