Something else is going on here. WordPress does not erase the contents of the .htaccess file when it writes new permalinks; it appends the new permalink structure to the end of the file.
Do you have anything other code or plugins that uses .htaccess? Are you on a Windows server that does not natively support mod rewrite and as a result requires other ways of enabling mod rewrite and might be the cause of the erasing?
If you want to keep WP from writing/appending to the .htaccess file, set permalinks, make your own changes, and then set .htaccess permissions to 444, and then you can view the permalinks admin page without WP automatically appending to the file. This is what I do.
Related Posts:
- WordPress slugs and 404 handling takes preference over folders in site root?
- Need help with friendly URL’s in WordPress
- how to flush custom author rewrite rule
- Add filename to attachment page url
- Creating Search Engine Friendly URL’s with Word Press
- Why is my mod_rewrite not working?
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How to encode author ID in the author permalink
- redirect post id to post full url
- WordPress Custom File Permalink
- WordPress 3.1 .htaccess contents keep dissappearing?
- How do I redirect a post url to a custom url?
- How can I create a permalink with two categories, with the order based on the parent category?
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Create a url structure for my blogs based on categories and sub-cats
- Woocommerce product permalink not working
- Create page as a file in my theme?
- Don’t change Custom Post Type slug to unique value
- Add or Create Custom Structure Tags to Permalink
- How do I change my permalink structure to a custom structure on an established blog?
- getting a 404 page for all pages except home. possibly permalinks
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- Create Miltiple Category Base
- How to get Previous Visited Page Information
- website is not loading home page (moving from one server to another server)
- Adding a custom field to a slug
- how can custom permalink structure use for specify custom post type
- URL issue after setting up Custom Structure in Settings >> Permalinks
- Custom permalink structure for posts in certain categories
- How to add rewrite rule for product compare page?
- Problems with running a 2nd installation of WordPress on my domain?
- How to add a static text at end of a wordpress permalink
- Combine Categories & Custom Taxonomy
- Structure of post types for TV Shows and episodes
- Smarter Document Management links between three WordPress sites sought
- permalink of word press in htacess
- Allow arbitrary text after page URL
- For one linked image per post, override that link with a permalink when on the main page
- I need to display post related info
- How to keep the /blog slug even in single post slug
- Show post content in two different places without redirect
- Permalink Listing WordPress
- Redirection after Category Change for Custom Structure
- Multiple Inputs in a Customizer Control
- Embedding a SOAP Client into a WordPress Plugin?
- Remove WordPress theme from a specific page
- How to keep a WordPress site synchronized between two servers?
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- How to build custom WP admin with custom URLs
- Custom editor field displaying HTML in Visual editor
- removed index.php now all pages 404
- How to set default values for options page
- Error upgrading from 2.9.2 to 3.0.1
- trying to modify colormag-fr_FR.po
- Force pdf download not working when include blog-header.php
- Passing page url into a custom field via the Press-This bookmarklet
- Using transients to store captchas
- How to extend nav-menu-item-control data in Appearance > Customize?
- Video to stretch across the entire homepage [closed]
- How can I allow access to multiple users, using the same login, at the same time?
- Does all editing of WordPress occur within the dashboard, or can we use our own text editor?
- Function to allow “Anyone can register”?
- TwentyFifteen: How can it show a different color on every post page?
- create a static folder independent with WordPress
- wp_query get post custom taxonomy in search.php
- Custom login with external provider iframe and data object
- get author in blog posts?
- Users can only view their content from the front end
- Localization: I want the backend: english and frontend in defined language
- Theme compression/ minifying or W3 Total Cache – which should I use? [closed]
- How do I reclaim either deleted pages or their permalinks?
- url rewrite .htaccess extension to permalink
- Widget title markup in register_sidebar
- Sticky menu for WP custom menubars
- What is theme-editor.tmp?
- More tag – how do I remove preceding ?
- Salesforce lead tracking with contact forms plugins [closed]
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- How can style text like this in wordpress
- Setup database structure with books, authors, languages etc. for publishing house [closed]
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- WordPress custom dropdown listings
- Help customising admin bar, removing buddypress links from dropdown
- Do I need to instantiate the XMLRPC class or any class in another class to access its methods?
- WordPress in a Subdirectory
- Customizing woocommerce product page
- javascript file not working in a plugin template file
- WordPress Using Zip code customer shop find without woocommerce plugin
- Custom post type defaults to index.php for archive page
- Got 404 error when changed siteurl via DB in WordPress
- Add button to My Sites dashboard page (multisite)?
- A specific menu inside a page, load different contents without reloading it, under the same link
- How to define a static Home page
- Logged in only custom page
- Make Terms Under Custom Taxonomy Use Specific Single.php Template
- Problem Locating and Changing Alt Attribute Of Link
- URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
- Show Site Name on WP login screen
- Adding css and js to a blank page created with custom template
- Custom Menu (only showing direct cildren) ACF not showing