简体   繁体   中英

How can I add an html page into wordpress?

Do you know how can I add existing html pages into wordpress? I'm very newbie in wordpress but I do have experience with html, css, js, php.

I have my own domain hosted in godaddy, for instance: www.mydomain.com .

So, I decided to install wordpress and it was successful; I can add post and pages. But I have some html & php pages, css & js files from my old site I'd like to still have access to, for instance: www.mydomain.com/stuff/coolpage.html , or www.mydomain.com/apps/cooldata.php , mydomain.com/css/screen.css , mydomain.com/js/coolobject.js .

I don't really need this pages to be linked to wordpress, but need to keep access the way they were ( mydomain.com/stuff/coolpage.html , mydomain.com/apps/cooldata.php , etc).

Thanks so much for your help!

  1. Go to the main directory (it contains your index.php and directories such as wp-admin, wp-content and wp-includes);
  2. Create your new directory there;
  3. Put the html files in your new directory;
  4. Maybe you will need to change the permissions. Then use chmod -R 755 directory
  5. And maybe you'll need to change the owner. To do that, first check the owner of the other directories with ls -l . If your server is Apache, for example, do chown -R www-data:www-data directory . But if it's not Apache replace www-data by the correct owner.

By the way, I have a WordPress site and created this page right now: http://marceljm.com/stuff/coolpage.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM