├───AzureProject
….└─── wordPressProject
….└─── index.html
Because i want the index.html to have the https://mywebsite.com url and the wordpress project to be https://mywebsite.com/wordPressProject
The wp-config looks like:
define('WP_HOME', 'https://mywebsite.com/wordPressProject');
define('WP_SITEURL','https://mywebsite.com/wordPressProject');
define('WP_CONTENT_URL', 'https://mywebsite.com/wordPressProject/wp-content');
everything works like normal, except that even if i can see the posts i can’t open them. i get: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”
what am i missing?
]]>Here is my websites link www.psfcorporation.com
I want to get rid of the page path thing that appears when you click on pages other than home. (E.g. “home > shop”)
Is there a way to remove this?
]]>cmsms-contact-form-builder/inc/form-builder-operator.php
you do:
$parse_uri = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
require_once($parse_uri[0] . 'wp-load.php');
require_once($parse_uri[0] . 'wp-admin/includes/admin.php');
The better way to do this is to use WordPress built in ABSPATH
define. The plugin breaks on installs where WordPress core is in a subfolder. Changing your code to the following will ensure it works on any WP install:
require_once( ABSPATH . 'wp-load.php');
require_once( ABSPATH . 'wp-admin/includes/admin.php');
This is also an issue in your cmsms-content-composer
plugin as well.
Our company recently took over a wordpress site for a client and began experiencing an issue yesterday. This is unfortunately a “no one knows who changed anything” situation as several people have backend access.
The issue is that image paths are adding the alias of the menu item to the path.
For example: trying to load an image from websitename.com/images/filename.png will work from the homepage, but if on the contact-us page the path will become websitename.com/contact-us/images/filename.png. This persists for about-us, etc. WordPress was not updated and is at the newest version, the theme was not updated.
.htaccess as follows:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
There a header image which is on all pages. I’m noticing when I inspect it it shows the following:
<img src=”images/HeaderBanner.png” alt=”” title=””>
This causes it to attempt to find the image from the menu alias. When adding a forward slash to indicate the root before the path, it works correctly. i.e: <img src=”/images/HeaderBanner.png” alt=”” title=””>
Is there some way to indicate to wordpress to path from the root? Does anyone know what could have affected this? Any help is very appreciated. Thanks
]]>Any help in the right direction?
]]>Thanks for any help you can provide.
]]>Not Found
The requested URL /xampp/web/wordpress/testDev/update_option(‘siteurl’, ‘https://10.0.1.14/xampp/web/wordpress/testDev’ );update_option(‘home’, ‘https://10.0.1.14/xampp/web/wordpress/testDev’ );/wp-login.php was not found on this server.
CASE HISTORY :: Hello, and thanks in advance to anyone who can assist this newb (student) to the land of WordPress. Yesterday I attempted a local install of XAMPP (PHP Dev Environment) and then WordPress on to my iMac. Both attempts went very well thanks to some really great tutorials that I found on the web (thanks to everyone for all those tutorials – Very much appreciated!). I then played around with my local install, and following another tutorial, uploaded it to my server and that too went pretty well. Unfortunately, my local install stopped working – any attempts to login to my local install sent me to my server install. I am trying to get my local install to work once more so that I can work on redesigning it, playing with it and learning about it without affecting my actual site – I want to develop locally as thats faster and safer then doing it on the server where all can see and all can be affect by my attempts to play/work/rework my themes and functions, etc.
So I’m trying to get the copy on my local hard drive working once more without decommissioning my working server version.
RESOLVE ATTEMPS ::
1. Hunted around for some trouble shooting tutorials, ultimately the consensus I got was to do the following:
A. Open local database
B. Access Database (wp-options field) make the following change:
//FIXME: do comment/remove these hack lines. (once the database is updated)
update_option(‘siteurl’, ‘https://your.domain.name/the/path’ );
update_option(‘home’, ‘https://your.domain.name/the/path’ );
I did this and the local install of my theme stopped displaying any CSS, and appeared as just an html file – but the links and such all appeared to be there which suggests some kind of communication between the local install of my blog and the DB is now happening.
2. Attempted to log in, received the following 404 error:
Not Found
The requested URL /xampp/web/wordpress/testDev/update_option(‘siteurl’, ‘https://10.0.1.14/xampp/web/wordpress/testDev’ );update_option(‘home’, ‘https://10.0.1.14/xampp/web/wordpress/testDev’ );/wp-login.php was not found on this server.
3. Deleted history, cookies, etc. Attempted to relog in with hope. I once again received the same 404 error.
PLEA FOR HELP :: HELP!
]]>and allowing use of subdomain and subfolders?
]]>Notice that it is adding a forward slash before the image file name. How can I fix this pathing problem?
]]>