Can I have a dynamic and static website at the same time? - wordpress

The situation is the following. I’m a beginner developer. Bought a domain and a simple hosting plan (includes 1 Msql base). I created a static HTML page. I modify it sometimes to show my progress.
Now I want to practise WordPress. Is it possible to keep this static webpage and create another dynamic page in WordPress? So this static page will be the main where I’ll put a link for the dynamic page.
Sorry if my question is too simple. I couldn’t find the answer anywhere.
Thanks!

Yes, you can create sub folder in public_html directory something like /public_html/xyz. so your domain will be xyz.com/xyz
now you can install wordpress in xyz folder and create dynamic website there.

Maybe you can use a sub-domain, they are normally free inside the hosting plan. You can have a folder for the html and other folder for the WordPress. Then just assign the correct folder for the main domain to the html and the subdomain.whatever.com to the WordPress.

Yeah there are a few ways to do it. Simplest is to name the page "index.html" and stick it in your root (public_html) directory. That page will display instead of the index.php file Wordpress uses, at least for the homepage.
Wordpress should "take over" if you navigate to any other URL.

Related

Putting a custom directory inside wordpress

I have a simple HTML microsite, which I want to put inside my wordpress website. For example: Wordpress website is: abc.com
I want to put my microsite inside this wordpress site. So URL becomes:
abc.com/microsite/
But, wordpress treats any url as its own. How can put "abc.com/microsite/" urls to Wordpress Ignore list. So that any pages inside microsite folder executes independently.
just put you folder 'microsite' in root(Where you find wp-admin,wp-content and wp-include folder). and
you are able to access the folder
"abc.com/microsite/ by this url
If you are still having issues with accessing the subfolder, try renaming the .htaccess to .htaccess-bak in order for WordPress to regenerate the file again. Understand that your website might temporarily go down.
I've found this solution to help in some cases, but I don't know exactly why, ergo I am not sure it will work. And if you feel uncomfortable editing the .htaccess file I suggest you learn more about it (as should I). It is a very powerful file and WordPress uses it a good deal.
P.S. The file is located in the same folder, WordPress' root folder where you find /wp-admin/, /wp-content/, etc. It is hidden by some hosting providers, but I've always been able to find them through FTP with the hosting companies I've used before.

What's the proper way to upload another web folder into Wordpress?

I use Wordpress for my blog and currently has a project which has a web folder that contains HTML/CSS/JS/PHP (basic website from scratching).
I can run it using MAMP by localhost/project/index.html and want to add the whold website into my Wordpress blog as a seperate page like mywebsite.com/project/index.html.
What's the proper way to do that?
The proper way, is to get a separate domain or create a subdomain for that second site..
However, it should be possible to just create a folder in the root of your existing domain, and upload the files into it..
If its meant to be a part of the existing website, the proper way would be to create a separate template for that page.
http://codex.wordpress.org/Page_Templates

Is there a way to upload an external folder in WordPress

I have a set of custom html pages that are not made with WordPress in folder DIR
In the WordPress blog I have a web page called SPECIAL that only some users can access (after being authenticated). I would like to know if there is a way to allow those users to open the web pages in DIR (in a comfortable way)
For now i am using a very non-pratical solution:
I make a zip archive of that folder, upload it from the Admin interface of WordPress, using WP-Filebase, and put a link to the DIR.zip in the web page SPECIAL.
Yes I agree that my solution is ridiculous. Please help me find a better one.
Thanks in advance.
One solution would be to link to the pages contained within the DIR folder on the SPECIAL page itself, or create an additional WordPress-based page, linked to from SPECIAL, that performs the same function as your DIR/index.html page.
Alternatively you could place an iframe of DIR/index.html on your SPECIAL page.
A longer term solution would be to migrate the contents of DIR into your WordPress installation, and restricting access to the same group of users who can currently see the SPECIAL page.

Modifying custom Wordpress pages

Sorry if this question is too basic (It would be great if someone could recommend me on a good resource/tutorial for starting up with wordpress development)
I am new to wordpress development. And I work on a Mac.
I downloaded MAMP, installed wordpress, and installed a custom theme which I bought online.
So far, I've been using the wordpress wp-admin interface to customize the theme.
I created a new Page called "myPage". I'm interested in making some design changes to myPage but the wp-admin tool is limited and I realized I have to start looking/modifying the code.
I'm using Netbeans, and created a new project of my local wordpress folder which contains the wp-admin, wp-content, wp-include folders.
However, I am not sure where in the code to find the page I created "myPage", in order to modify it.
I ran a search on all the code but I don't find any mention of it.
I guess my custom page is saved elsewhere? in the database?
Thanks!
Drill down through wp-content > themes > to your theme's folder. Inside there you will find a file called page.php. That is your default page template. To double check this is the page being used, in your wordpress backend, edit the page and on the right hand side in the 'page attributes' panel, you will see a dropdown under 'Template'. You're purchased theme may have many templates, so that is how you can tell which one is being used.
Note: Creating a page inside of the wordpress backend does not actually create a new page file for that page.
Hope this helps.
Yea, you can find your page in DB, check out link for more info.
To access your database, you need to go to url http://localhost/phpMyAdmin/ if everything is set right; or your local IP/phpMyAdmin/ if host alias is not set.
EDITED
If you are looking for file, you should look in wpfolder/wp-content/themes/some-theme/ and now ether page.php or content-page.php I am not sure.

Access wordpress from a directory that its not installed in

I have a directory /examples/ that is at the root of my site. I want to retain this hierarchy:
/examples/foo1/
/examples/foo2/ ...etc
I also have wordpress installed at the root with my posts shown on the home page. I found out the long way that I cant access any wordpress functions or anything wordpress related from within the /examples/ directory or any folders within examples directory.
I know I can make a page within wordpress called examples and make sub pages under examples to get the desired directory, but I dont want to end up with 300 subpages of example content. Thats like treating the page section as a post section.
Is there a way I can access wordpress variables and functions from the /examples/ directory that I made? Or is there another method that I have not thought of to get this directory and still have access to wordpress stuff?
I hope this is clear.. thanks!
This is similar to a question previously answered. Refer to the instructions for displaying WP content in the same domain:
Displaying articles from a wordpress site on a non-wordpress site

Resources