Wednesday, September 14, 2011

How to change those ugly WordPress file name?

For example, I need to change a www.website.com/?p=7 into a more meaningful one, like: www.website.com/file-name-here.php (or without a php suffix)



I always upload my files using WP dashboard, not from FTP client.



Also, how do I suppose to upload a php file into my wordpress blog using FTP?



(I can't seem to find my content page/file location)How to change those ugly WordPress file name?First of all make sure there is a writeable file in the WordPress root called .htaccess



Then log in to wp-admin and go to Settings %26gt; Permalinks



Choose Custom Structure



and enter:



/%postname%.php



Personally I would lose the .php and do



/%postname%/



Or



/%postname%.html



Choose Save Changes



Note: You must have ModRewrite enabled on Apache for it to work



To upload you need a FTP client. Filezilla is free and for Windows, Mac and Linux. Windows and Linux have one built in. Because FTP is not secure OS X doesn't come with one. Try Cyberduck.

No comments:

Post a Comment