I am new to drupal 8, so probably the question is quite silly. I need to create a home page for the website and it should be accessible by the url example.com (without any routes in url). I created a page, via page manager, called it Home page and setted the path "/home" (why I can't stay it empty?). So, ok, I defined the path to the front page in admin/structure/views/view/frontpage and in /admin/config/system/site-information. It works, but when I access the example.com, for some reason the trailing slash is added. How can I remove it?
Related
Wordpress site run locally with XAMPP and accessed via localhost/mysite (stored at C:\xampp\htdocs\mysite) isn't picking up images stored at C:\xampp\htdocs\mysite\wp-content\uploads\
Most of the img url's from live site I hardcoded the full path, and still show up as,
https://live_site.url/wp-content/uploads/.../imgx.jpg
(Can't access Wordpress dashboard currently so can't edit pages directly.)
The img urls that weren't full path show up as,
localhost/wp-content/uploads/2018/07/imgz.jpg
(which should presumably be, localhost/mysite/wp-content/uploads/.../imgz.jpg)
Added redirect to .htaccess (which I tried putting first in C:\xampp\htdocs\mysite\ and then C:\xampp\htdocs) --
Redirect 301 https://live_site.url/wp-content/uploads/ localhost/mysite/wp-content/uploads
Doesn't work, causes ERROR 403 ACCESS DENIED! for the full page, which won't go away until I actually delete .htaccess itself.
(And the above redirect in any case would not solve the problem with the img url's that weren't full path.)
In the MySQL DB for mysite, I have set both wp_options.site_url and wp_options.home to localhost/mysite (no db access issues)
I registered my new domain "aaa.com"
I made a subfolder "bbb" , installed wordpress in there.
I installed few plugins on "aaa.com/bbb"
Advanced custom fields
statcounter plugin
WP custom widget area
wp cerber
custom sidebars
I set up subdomain as "bbb"
I set wp-home url and wp-site url by "bbb.aaa.com" in options page.
subdomain seemed to work well.
when I go "aaa.com/bbb", wp shows 404 page
url "bbb.aaa.com" works fine. when I clicks some permalink or page link, the urls look like "bbb.aaa.com/postOrPageUrls"
HOWEVER, there was a problem when I typed bbb.aaa.com/wp-admin
WP redirected me to the login page - it was what I expected
But, I couldn't entered admin page even though I typed ID,passwords.
wp doesn't showed login errer message, It just refreshed everytime I press submit button.
I typed url as "aaa.com/bbb/wp-admin/" and I could enter the admin page with that url.
I figured out that thre's difference between two login pages.
"bbb.aaa.com/wp-admin" redirects to "bbb.aaa.com/wp-login.php?redirect_to=http%3A%2F%2Fbbb.aaa.com%2Fbbb%2Fwp-admin%2F&reauth=1"
wait, "bbb.aaa.com/bbb/wp-admin/" ?
"aaa.com/bbb/wp-admin" redirects to "bbb.aaa.com/wp-login.php?redirect_to=http%3A%2F%2Faaa.com%2Fbbb%2Fwp-admin%2F&reauth=1"
so that mean, the login page redirected from "bbb.aaa.com/wp-admin" points wrong address: bbb.aaa.com already points the subfolder bbb, but that login page finds the subfolder bbb again.
It was long story. now I'm trying to fix the problem. login page - redirected by wp-admin - redirecting to wrong url. Can I get some hints?
I have developed a wordpress based site using xampp 1.8.3. On my local machine all is wordìking fine. On the server I am using php 5.4.12.
On the server I copied the site on a subfolder name site, wich is the same subfolder name I had in xampp/htdocs. Then i changed all occurances of localhost to mydomain.com with the searchreplacedb2.php script (http://interconnectit.com/products/search-and-replace-for-wordpress-databases). I am confident that the tool is working properly and the issue does not depend on it as I have used it several other times with succcess.
Therefore since on my local machine the site was in localhost/site, on the hosting server is on mydomain.com/site.
The proble is that accessing the site home page produces a wordpress managed 404 page with no css being loaded. The title, menu and other site specific text is displayed, therefore the db is being read correctly. Trying to access any page other than the home page gets a webhost managed 404 page. This happens also if I try to access page through non symbolic urls, ei. mydomain.com/site/?page_id=5; therefore it is should not be a redirection issues.
what can be the issue? How can I proceed in troubleshooting it?
Thanks, in advance for your time.
You need to double check everything, first:
Flush the rewrite rules by visiting settings->permalinks then try your pages. Then try:
List item login to phpmyadmin for each domain, check out the database... options table... verify the "siteurl", and "home" columns. make sure they match the respective domains. Then try:
List itemCheck the DNS zone template. Could very well be possible DNS conflicts.
i am a wordpress newbie and have not much experience with their settings. Basically, i have recently set up a domain mapping for an existing wordpress site that i took over and that i had to move to another host, so domain mapping seemed to be an easy option to point the old URL to the new host. I have set up the domain mapping to point to the new site from:
http://www.myOldExample.com
to the new one:
http://www.myNewWebsite.com/foldername
So far the content migration worked in wordpress. The problem is that when i type in the old URL in the browser, it redirects the old page and shows the new site for the main home section as expected, but for all the subsequent links such as About, Contact, Products etc. it shows the new URL with the subfolder path, whereas i would like them to display the old URL as the base URL, so i am not sure if i need to change anything on the domain mapping site, or does this need to be done on the wordpress side? Does wordpress offer something like a base URL rewrite? I could only find in the general settings the Site URL and Wordpress URL, but i am not sure if changing those values to point to the old URL would break the site.
Many thanks for any ideas.
I think, this is url problem. When you are migrating wordpress site from one server to another server or same server but different folder, so its create url problem like http: //theoldserver to, for example, http: //thenewserver.com is problematic. So download file from this site and put this file, where blog files placed on server. Then do step, which define on this url.
This is very handy tool
Search and Replace for WordPress Databases Script" tool that's very handy (make sure to read the instructions and have a backup of the db before using it).
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