How to shift from /admin to the domain name? - wordpress

My problem is that I have installed worpress on CPanel. But when I access my site name i.e. www.loophole.ml it shows the index / page. But when I open www.loophole.ml/admin then I shows my website.
How I can make it directly that when I search www.loophole.ml my website appear not the Index/ page.

Easiest solution is to take wordpress out of the admin folder and install it in the parent folder, e.g.
public_html <-- Copy files into this folder
- admin
- cgi-bin
Once the files are in place you will need to alter the database so that the home_url and site_url are the same (http://loophole.ml/). These fields are located in the wp_options table.

Related

How can I install wordpress to run on my local server

I've tried this over and over. Changed my config.php file everytime but my database information never seem to work right. How do I correct this? Thanks.
To set up a new WordPress site locally, follow the steps below:
Download MAMP here.
Download WordPress here.
Create a directory that will hold all your WordPress sites.
Open MAMP and go to Preferences > Web Server and change the root directory to the one you just created.
In the root directory, create a folder that will include a WordPress site.
Copy and paste WordPress files (from step 2) into the folder (created in step 5).
Create a database by going to http://localhost:8888/MAMP/index.php?page=phpmyadmin > Databases, adding the name of your choosing under Create database, clicking create.
Go to http://localhost:8888 and click on the directory that has your website.
Install WordPress. Enter "root" for both username and password. For database, enter the name of database you created in step 7.
Enjoy your locally-hosted WordPress site!

After moving the destination of my WordPress folder and renaming my project, I can't access wp-admin

I moved the destination of my WordPress folder in Finder and can no longer access wp-admin. I'm running MAMP and it's working, but I cannot access wp-admin and am receiving a 404 Not Found page.
My WordPress folder used to be part of Sites/HackerYou/Week7/WordPress. Now it's just Sites/WordPress. The project I'm working on reminds inside the WordPress folder and it has been renamed.
When I go to localhost:8888, that's where I'm receiving the Page not found notification. This is my WordPress so apologies if I'm not providing enough detail, please let me know if there's anything I can add to help you answer the question.
Edit: I have also changed my database name in phpMyAdmin and the wp-config file to the same name that I've given to my project folder.
Try changing the path to your new directory in phpMyAdmin. Go to MAMP > Tools > phpMyAdmin. Select your database and click on wp_options. You need to change the path to your new directory for the "siteurl" and "home". The "home" option might be on the second page.
If you migrate folder mean, Follow these steps:
1) In your database change homeurl & siteurl
2) After migrate update your permalinks
3) Now also getting problem then open you config file
you can enable debug mode (i.e) define('WP_DEBUG', true);
it will show error statement.

How to change download url path in wordpress to www.yoursite.com/download?

I am trying to hide or shorten the link to files or picture uploaded to the wp-content/uploads folder.
By default in WordPress if you upload and image, pdf, etc and insert it into a post or page it will have a link like this:
mysite.com/wp-content/uploads/2014/08/picture.jpg"
I want to hide the reference to all WP folders on my site. I am trying to find a way that the URL will display like this instead.
mysite.org/uploads/2014/08/picture.jpg"
or
mysite.org/uploads/picture.jpg"
or
mysite.org/picture.jpg"
Is there a plugin or some hack that will let me hide the "wp-content" from showing up in my urls?
Add this to your wp-config.php file for your website.
define( 'UPLOADS', 'downloads' );
Then using FTP or RDP (or however you access your server), create a folder called "downloads" in the root directory of the WordPress site.
Then you need to uncheck the box for the "Organize my uploads into month- and year-based folders" option in Settings > Media of the WordPress admin.
Note: If you already have files in the media library, those will need to be moved over and all references to the old uploads folder in the database changed, if you want it all to be consistent.

Addition for a folder at Wordpress default permalink structure

My website is hosted at root directory (public_html) for hosting so the URL format is as follows:
http://www.example.com
I want the homepage to be open as it is on main domain but to add a custom folder directory (directory name 'wp') to all my inner pages and posts. For example currently I have the page structure like this:
http://www.example.com/?p=123
But I want it to be open like this with 'wp':
http://www.example.com/wp/?p=123
What are the necessary steps needs to be taken for this?
Thanks in advanced!
You would need to create a folder in your root directory called "wp" and install wordpress there.

Moving WordPress From Subdirectory to Root

I'm moving my WordPress site from a subdirectory of my site to the root. What do I have to change in order for the site to be functional at that location?
Nothing more ...just change the site url and home url in wp_option table in database and reset permalinks in settings.
The following are the steps you have to follow to move the subdirectory to the root.
1.move all the subdirectory files and folders to the root
2.take the back of your sql file.
3.Replace all the previous url with the new url in the sql(like http://expmle.com/sub to http://example.com)
4.import the replaced sql to the database.

Resources