I have installed wordpress and WooCommerce in folder "blog" (not root directory), so URL of this WP is www.domain.com/blog/
Now when visiting e-shop, I am getting URL www.domain.com/blog/e-shop/
What I need is to rewrite URL of e-shop to www.domain.com/e-shop/ (remove "blog/" from URL)
So when user clicks "blog", he will be redirected to
www.domain.com/blog/
when "e-shop", redirect to
www.domain.com/e-shop/
How to do it? Thanks for help.
You need to move Wordpress to the root directory instead.
This will solve your e-shop/ address issue; as for the blog, you can simply create a page in Wordpress, call it 'Blog', and then on the Settings -> Reading page in the Wordpress admin panel, set your new Blog page as the 'Posts Page'. This will move the blog back to www.domain.com/blog for you, without affecting the address of the e-shop.
If you have Wordpress installed under the blog/ folder, everything that Wordpress does - including your blog and your Woocommerce setup - also have to be inside that folder.
Related
How do I add a /lang to the home url of a Wordpress site? I've got a project with a special Wordpress multisite setup instead of a language plugin setup. I need to be able to set the homepage to www.homepage.com/lang-1 without always having the /lang-1 in every url.
I've tried doing this via permalinks but Wordpress redirects to the link without /lang-1. Is there a way to fix this? I know how to change the home page but I want to change the link to the home page.
To set the home page with custom page
Click on Settings >> Reading in your admin dashboard.
Set Your homepage displays to A static page (2nd option)
Select the static page we created (lang-1) as the Homepage
4 .Click Save.
Due to some requirement I have to install wordpress in cakephp site, I installed it inside app/webroot/blog and after some modification I can access wordpress blog as
mysite.com/blog
Now the problem is that wordpress post url should not contain word "blog" ,currently they are as
mysite.com/blog/post_url.
They should be like
mysite.com/post_url.
I have open to install wordpress anywhere.
Thanks
Rich
Is your problem that you truly don't want the word 'blog' to appear in the url, or that you can't see your posts because their path is wrong? If the latter, you can fix it by changing the root path in the wordpress settings, add '/blog' at the end of your default path and all should be well.
I have just installed a wordpress website, and i was working with some security measures but now my wordpress admin is not loading. It gets redirected to page not found.
Steps which i have done
I have installed wordpress in the following url icg.projects.com
Then i have moved the wp files to a sub-folder named "core-files" (as per this url http://www.ampercent.com/move-core-wordpress-files-custom-directory/6211/).
Till now frontend and wp admin works fine
Now i just tried to change the admin url to icgadmin (ie. from icg.projects.com/core-files/wp-admin/ to icg.projects.com/core-files/icgadmin/). The problem is after giving the username and password in wp-login page my url becomes http://icg.projects.com/core-files/icgadmin/. But the content of the page is "Page not Found". But the actually i should get the wordpress admin.
Any help would be really appreciated.
Thanks in advance
I need to create a static php landing page (landing.php) for inbound advertiser links that that can access my wp plugin and then redirect to homepage.
Is it possible to access my plugin from a "regular" .php file? If so, how?
Or is there better way to do this within WP that doesn't load templates and just accesses my wp plugin and redirects to homepage?
Put this line at the top of your landing php:
require('/path/to/wp-load.php');
After that, you can use all WordPress functions, including your plugin.
If I have a wordpress blog, is it possible to have the main url to redirect to a basic HTML page, while keeping the permalinks still displaying the blog posts within a wordpress theme?
Set your front-page to a custom (static) page (Settings -> Reading in WP 2.8)
More info here