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
- How do I get the URL section to show use a different domain in the WordPress Admin?
- Many Rewrite Parameters/Rules
- Adding other links on header than LinkedIn, Facebook, Youtube etc
- Pagination with custom field
- How can i display custom menu in sidebar?
- Custom select query two tables by a meta key
- How to have multiple WordPress Menus
- Can readers download zip files from WordPress sites?
- Permalinks – .htaccess
- I want to filter my products with attributes [closed]
- Make tag archive display post are ordered by post format
- Create a custom admin panel
- How to customize a site hosted on wordpress.com locally [closed]
- Help customising admin bar, removing buddypress links from dropdown
- how to add wp-user fields to front-end form
- Let author add field to metabox by pressing a button
- Show custom field value as a link
- Custom permalink structure with %postname% in front of domain name
- Configuring Home Page Address
- How to make the Pages in WordPress Customized?
- Custom “wp_login.php?action=lostpassword” and reset password
- Dynamic Control in customiser
- How Can I Use a Custom AccessFileName?
- How to auto add nofollow to links in custom field?
- Custom theme – how to link the image without posting it
- WordPress Page Not Found if Permalink Settings is Postname
- How to load a mycred hook from a plugin?
- toggle Multiple Loop with tittle
- Create a Page template selector page
- How to add active state to the navigation links?
- xammp server permalink by postname not working
- How to assign a custom post title to be the post ID?
- Conditional Permalink based on category?
- Replace a ‘Title’ tag with a Custom Field
- Creating custom page template
- failing to display a custom font [closed]
- WP function duplicating body content
- Which delete query is better with prepare or delete
- Edit specific text on a static page
- How to create a custom WordPress front page
- Customise the Category Widget
- How to redirect the home page to a custom page?
- Custom permalink structure only saves with index.php inserted
- Custom blog setting directs blog to index page
- How To Style Links in Content Area With Tag Automatically?
- Meta Tags by Meta Box
- Trying to set specific image dimensions and crop with ACF
- What is the best way to setup WordPress for version control and PhpStorm while allowing updates
- Get whole linked with wp_list_pages
- Force WordPress to load a specific template
- What’s the right way to share data between widgets?
- Do I need to instantiate the XMLRPC class or any class in another class to access its methods?
- Date Ordered Archive Page for single category?
- GUID URL Question
- Custom Same Page Search
- WordPress in a Subdirectory
- replacing post ID by custom post name in url