I've installed my wordpress site in a folder and now I only can reach it via: [domainname]/wordpress.
Is it possible to redirect my site to [domainname]?
Yes it is possible and can be done in two steps:
Change Site Address Option
Modify index.php
Details: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory on the paragraph Using a pre-existing subdirectory install
Move Wordpress to your webroot:
http://codex.wordpress.org/Moving_WordPress#On_Your_Existing_Server
Related
I have an OpenLiteSpeed VPS WordPress install over at Vultr, and am trying to install a non-WordPress website into a sub-folder I created.
Ex.) https://example.com/test that is pointed to a new folder I created in the WordPress root install directory of /var/www/html/test
I created the directory and placed the files needed there that include an index.php file, however when I go to https://example.com/test, I receive a 404 Not Found error. I believe it has something to do with modifying the .htaccess file in the root of my WordPress install, but am unsure of what to modify 100%.
Any help is appreciated!
I tried modifying the Rewrite rules but am not confident in the options I chose. I since reverted the .htaccess file back to my default settings in which OpenLiteSpeed defines.
This can be closed out - I have it defined in my index.php file that resides in that folder point to a database I created in phpMyAdmin and I had the database field filled out incorrectly. Thank you to everyone who replied though. Oops!
How can I add to my domain a custom name, as for example:
mydomain.com/test/
So if visit any page or post the URL will be
mydomain.com/test/...
Simplest method is to install Wordpress in a directory called /test/ relative to you webserver root.
For example, if your webserver root is /var/www/ then you can install it in /var/www/test/.
Then all of your WordPress URLs will begin with mydomain.com/test/
Alternatively, you can add rewrite rules to your webserver configuration, but that gets more complicated.
I use to have wordpress installed on the root of the website, but today I moved to a subdirectory "root/blog" with these steps:
1) Moved all the files>
2) Copied .htaccess and index.php do "root" and modify them
3) Change the wordpress URL on the settings.
It worked fine.
But I don't want it be accessed via www.mysite.com. I want to be access as www.mysite.com/blog. I want to do my own main index.
But if I remove the index.php from root, it gives me problems like /blog won't find my static first page.
What I'm missing?
You need to change your apache virtualhosts settings.
More infos here.
I am using godaddy server.
I have wordpress as root directory and i have setup magento from local to server inside root as subdirectory.
Magento home page is working fine,but when i try to open any supage of magento then it opens "About us" page without CSS of root wordpress.
Thanks in advance.
Have you set the RewriteBase statement in Magento .htaccess ?
#RewriteBase /magento/
become
RewriteBase /subdirectory/
If your server is configured correctly you don't need to set RewriteBase, but make sure your base url is set correctly in backend as {server-root}/subdirectory/. If you cannot access admin, you'll need to change data in core_config_data by searching fields by url and setting the correct value by for example phpMyAdmin. Otherwise you'll need to do it by ssh + mysql command... or reinstall your Magento instance giving correct url to the installer.
Using Bitnami WordPress installer, I want to install WordPress in the root directory, instead of /wordpress directory.
(Or rather, move the WordPress website to the root directory after the installation.)
I attempted to follow somewhat dated instructions I found here:
http://bitnami.com/forums/forums/wordpress/topics/installing-to-root-folder-not-sub-folder
But I couldn't even complete the very first step because URL settings are grayed-out in the Settings panel. Also, the DocumentRoot value is very different from what is described. I think it's because the WordPress has greatly changed since 2010.
Could someone knowledgeable please help with this?
Wordpress hasn't changed much since it was initially released 10 years ago or whenever it was.
Currently: Wordpress is installed in var/www/html/wordpress/[all the wp files are in this folder]
You want: Wordpress to be installed var/www/html/[all the wp files are in this folder]
1: Via ssh or ftp copy the files
From: var/www/html/wordpress To: var/www/html
2: In phpmyadmin > wp_options > first row > remove wordpress from the url.
3: there is another entry of the url on the second page of the wp_options table. Change the url there too.