If I understand correctly you want to hide the “Permalinks” menu link in WP-Admin > Settings.
Create a PHP file in the following location:
wp-content/mu-plugins/block-permalinks.php
If mu-plugins doesn’t exist create it. Place the following code in it:
<?php
add_action( 'admin_menu', 'belalkhan2292_remove_menus' );
function belalkhan2292_remove_menus() {
remove_submenu_page( 'options-general.php', 'options-permalink.php' );
}
This will remove the link but users can directly access the page if the have the link, so add the following code too:
add_action( 'admin_init', 'belalkhan2292_block_permalinks' );
function belalkhan2292_block_permalinks() {
global $pagenow;
if ( 'options-permalink.php' == $pagenow ) {
wp_die( 'Not allowed' );
}
}
This blocks the page for all users (including you).