Wordpress main static page url - wordpress

Wordpress 4.6.
I set a static page as main page. And now url of main page is url of my static page.
What I need to do to make such url: www.mysite.com but not www.mysite.com/mypagename?

If i understand correctly, you want to change the URI of your home page? Normally when your page is the home page, the page will not have any permalink like page_id=x.

I understand.
I have the plugin Polylang, that did 302 redirect to url of static page with prefix and permalink.
I change URL modifications settings - turn on checkbox "The front page url contains the language code instead of the page name or page id" and all is OK.

Go to your Wordpress admin pannel > Settings > Reading > Front page displays and select your front page name from the drop down.
http://your.site/wp-admin/options-reading.php

Related

Why can't I set the permalink of a custom 404 page to /404?

When I set the custom 404 error to point to a custom 404 page named "404", it gets the job done and displays this page when it should correctly.
I'm just curious why am I not able to set the permalink of that page to /404/? It forces it to 404-2, but I don't have any other permalinks set to /404, and the /404 page does not exist when I navigate directly to that URL. Is it some kind of a reserved permalink maybe? Do I need to remove the original WP 404.php page from the server or something?
Thanks!

How do I add /lang to the Wordpress homepage url?

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.

Wordpress when I have set static front page then home page not working

I have created a page in admin panel. When I have set it to static front page from settings > reading the home page is totally blank. But when I removed this page as a home page and run the url like demosite.com/pageslug then it is working fine.
Can any one please tell me why it is happening. Is this a htaccess issue?

WordPress front page (homepage) fails to redirect when static front page is set

I have configured WordPress to display a static front page as described here:
http://codex.wordpress.org/Settings_Reading_SubPanel#Reading_Settings
When I save changes and try to visit my front page, my browser displays the following error:
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
(source: flickr.com)
Changing cookies settings does not remedy the situation.
I'm using the theme Constructor (http://wordpress.org/extend/themes/constructor), which I suspect may be contributing to the problem.
How can I make WordPress properly display my front page?
create a page called home or whatever, go to
**Admin->Settings->Reading**
Change the......
Front page displays
1. Your latest posts
2. A Static Page
Select Static Page and from the dropdown select your newley created home/page.
if its not redirecting check your permalink settings...set it to default.
Check the homepage is working, re-apply any permalink settings you had..
If the page is still redirecting in a away it will never complete, then try opening your .htaccess file in the root of your wordpress site, delete anything inside and save it,
Again check your homepage... if its still not working, then it's def; down to your theme you are using, if there are particular theme templates for the homepage then that may be the cause.. no time to check the template myself just now, (maybe later)..
You could check the
admin->edit-page
you should see all your loaded pages on the site,
hover over the homepage listing and click "Quick Edit" onm the right hand side, have a look and check the template drop down menu for any homepage specific template that needs applied to that particular page, then click update and re-check the homepage status now.
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
this problem happening when you redirect to a page who redirect you back. and it create indefinite loop of redirecting. So, the browser will trap and confuse and produce such error. Read you code again
maybe you need contact the theme author

wordpress : how to put an enter page?

ive created an enter page for wordpress and what im wondering is how do i put it as the index page when the index page has the code to load wordpress? how and where do i place the enter page? thanks
There's setting in wordpress admin page which doesn't involve manual setting in .htaccess.
Besides the fact that splash pages are so very wrong... (the only defensible exception I can think of is for an adults only site that asks you if you are 18 or older), you could set it up as index.html and ensure your .htaccess has
DirectoryIndex index.html index.php
Things that you could do ...
Put the splash page on /index.html and put wordpress in /site/ (or something else innocuous); put a redirect on /index.html -> /site/ after the splash is done.
Put the splash page as a page named 'Splash' in Wordpress, with its own template. In the Reading settings page, set the 'Front Page' as 'Splash'. Redirect to the index page after the splash is done.
Put the splash page as a page named 'Splash' in Wordpress, with its own template. Modify index.php in your theme to check for a cookie -- if the cookie isn't present, load the Splash page instead of processing the Wordpress Loop. Once the splash page is done, set the cookie and redirect to the index page.
A route that's worked for me is to bypass the WordPress core files and do everything from your theme folder. So, for example, in your theme folder (WEBROOT/wp-content/themes/YOURTHEMEFOLDER) add a home.php file, and in that file, add whatever code you'd like to use for that first page. By default, WordPress looks for a file named home.php, if it finds it, it will use it first, if it doesn't find it, it will use the index.php next. Since you'd like to use both, it will use home.php for your home page / site default page & then every other page can use the index.php page.
Also, there's other template files that WordPress will look towards before it displays the index.php page - for a detailed list / illustration of this go to http://codex.wordpress.org/Template_Hierarchy & scroll down a little.

Resources