I’m totally new to server and rewrite stuff…
Wondering… Is there any way (in .htaccess file)to hide directory of wordpress eg wp-admin to another name so visitors won’t know the backend is wordpress based.
Have anyone of the master here tried this? Wish that you can share your knowledge here.
Well, to hide the fact that it’s WP, you’d have to remove their footer and, presumably, some info in the headers. THEN you could rename the wp-admin directory but to what end? That directory is password protected and that’s your protection against the curious (as well as the hackers).
Although I know WP have done a lot of security, but hiding the the real directory / engine working behind will be even more secure. Besides, using a nicer URL is also one of my purpose.
Is there any way to rewrite anything in the url which contain “wp-” to nothing?
eg for directory:
wp-admin->admin
wp-includes->includes
wp-content->content
You’re switching gears and talking about something completely different.
Back to WP, though. Its config.php contains all the directory information for WP including the directory in which it’s located (in the case of your example, blog/). IMHO, if you mess with WP, you can easily disable the whole thing, i.e., don’t do it!
Personally, I do NOT like WP’s mod_rewrite as its intent is to capture and redirect EVERTHING that is sent to its directory and redirect to its index.php file which, in turn, parses it to determine what was requested. If you change the mod_rewrite (except to avoid blog/ totally), you will disable WP. That’s the price of using it.