I have magento on my root domain with wordpress integration, so currently I have url like www.myurl.com/blog and I don't to display /blog in my url. the result url should be www.myurl.com/
is there a way to do this?
You need to go to settings>general and change the site url to www.myurl.com and the wordpress url to www.myurl.com/blog then COPY not move the .htacess and index.php files into the root directory. This should use wordpress as the site for the domain now. In order to access the backend you will still need to go to www.myurl.com/blog/wp-admin
Related
I want to rewrite the URLs from www.domain.com/examp1 to displays the content from a subfolder on the domain root /fodler1/folder2/ and I want all the URL on the website to be changed according to this rewriting.
I was excited to try this but I guess I didn't make it work!
Method I (Without URL change):
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Thanks
WP multisite (subdomain) is can be used http://codex.wordpress.org/Create_A_Network
Moreover you can install the WP Domain Mapping Plugin to run on other domains
You need to decide whether you want WP multisite subdomain or sub-directory installation. WP subdomain does exactly what you want, but WP subdir + domain mapping plugin allows you to have both (subdomain AND sub-directory). WP subdomain looks like this: domain.com (main site) site1.domain.com site2.domain.com
WP subdirectory looks like this: domain.com (main site) domain.com/site1 domain.com/site2
With WP Domain Mapping plugin you can map any subsite above to another domain, for example: site1.domain.com -> www.site1.com site2.domain.com -> www.site2.com [or] domain.com/site1 -> www.site1.com domain.com/site2 -> www.site2.com
Got answer from - https://wordpress.stackexchange.com/users/42826/user42826
I got a website running and in the subdirectory domain.com/blog/ I installed a Wordpress blog website. The subdirectory contains dozen of blog articles, for example
domain .com/blog/testing
domain .com/blog/example
domain .com/blog/article1
domain .com/blog/article2
And what I am trying to do is to rewrite and redirect (a single page) domain.com/blog/example to domain.com/example
Any way to do this?
It seems javascript redirect is better than htaccess redirect for your case.
Simply edit your article using a code editor in wordpress.
<script>window.location = "http://www.yourhomepage.com";</script>
I have a website in main folder with urls like:
domain.com/article/one etc.
Also i would like to install Wordpress into folder:
wordpress
But i would like urls to be NOT:
domain.com/wordpress/post/....
But:
domain.com/post/...
I would like to handle with .htaccess or index.php all requests to Wordpress so they are redirected to proper place in wordpress folder, so the main application will be intact.
How to make sure my basic app and wordpress will work together nicely?
change wp-options table value of home url and site url
what you want like abc.com
and move your content to main directory where you want like public_html/
i have a wordpress site let just call it testing.com
with a page url called blog/ which can access via testing.com/blog
i am using NGINX as the web server.
How do i rewrite the testing.com/blog to blog.testing.com with all its content still intact?
//edit
in this case, /blog is a page in the wordpress and not the wordpress itself, only that page and all the link inside the page would be rewrite to the subdomain and nothing else
example:
inside of the blog.testing.com there was 2 more link such as:
1. older post
(original link will be testing.com/blog/page/2 and change it to blog.testing.com/page/2)
1. read more on each post
(original link will be testing.com/2017/05/testpost1 and change it to blog.testing.com/2017/05/testpost1)
//end of edit
so as to say as if i am opening testing.com/blog in blog.testing.com
i have tried rewrite and proxy pass
location ^~ /blog/ {
rewrite ^/admin(.*) http://blog.testing.com$uri permanent;
}
with the above block
the result is same as return the url only and not with the supposed content.
or is it not possible to do so?
Hi assuming that you don't want to keep the URL testing.com/blog at all and instead want to use the subdomain blog.testing.com then effectively what you want to achieve is a WordPress migration. There are a number of ways you can achieve a migration, depending on how technically able you are. The easiest way is probably to install and use a WordPress migration plug in such as WordPress Duplicator or WordPress Move. Please take a backup of your files AND database before you start.
The official WordPress guide to migration can be found at https://codex.wordpress.org/Moving_WordPress
In short you would create the subdomain, then move (migrate) the site that's currently at testing.com/blog to the subdomain blog.testing.com
If the subdomain directory is to be left at /blog and you are just pointing the subdomain to that directory, then you might be able to do what you need to do just by updating the database to reset all the internal URLs in the WordPress database. In this case you could consider using https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
This is what I tend to use when migrating sites from test to live. Hope this helps.
I installed Wordpress on a cPanel account, and it's accessible by visiting website.com/wordpress. What would I need to do to make it so that when a user visits website.com , he actually sees the website.com/wordpress ? I think there is a better solution than adding a redirect inside an index.html.
You can use .htaccess to make the wordpress location as your Directory index using a .htaccess file in your root above wordpress folder..
and include following in that .htaccess file
DirectoryIndex wordpress/index
Though I do not know about the cPanel admin section - look into your domain configuration or general settings: There should be a place where you can set the the target of the domain or your 'home directory'. it currently should point to the root directory '/'.
Simply let it point to the '/wordpress' folder and you should be fine. If you do not have access to the domain config, install the wordpress directly into the root directory.