viebone
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeWell, after trying different things I couldn’t do ssh to my server.
Finally I have deactivate the logout button for that blog because I am completly desperate.
I am not use to command line and ssh…
Anyway, thank you very much for your time and if some day I got an answer I am going to post it here.
I really appreciate your help,
Thanks!!!
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHello,
Bufff, nothing, I have renamed the plugins folder to plugins-old and when I click on the logout button it happens again.
I don’t have mu-plugins-old.
Well thanks for your help, I don’t know what to do. Is there a way to deactivate the logout button in this blog admin????
Thanks a lot!
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHello,
Yes, every time I press logout button the url changes, but only if I logout from the /en/wp-admin. I mean, when I logout from the second blog admin.
I have deactivated all plugins in both sites, and nothing, if I press de logout button the url changes on the db.
It is posible that I did something wrong in my wp-config.php???
Thanks mate!
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHello, hope you are well!
After testing my website a few days I know where is the problem but I don’t know how to solve it.
As I told you before, I have a wordpress multisite with to blogs.
If I go to the admin of the second blog and I click on the LogOut button, wordpress change the url in the db.
I have mysite.com and mysite.com/en, after logout, the url of the second blog change to mysite.com.
Each time I logout from the second blog admin I have to go to my phpadmin and change the siteurl field value on the wp_3_options table.
What the hell I am doing wrong??? jejeje I am getting crazy with this small but anoying problem.
I have tried to trace the logout process to see if I see where it is the problem but I can’t, I have no idea what is going on.
Do you know what could I do???
Thanks
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHello again, thanks you so much for your help.
It happens each time I use the admin to create new post, update content etc. After updating I always have to enter in the database and change the siteurl of the table wp_3_options, which is the second blog options table, and add the “/en” to mydomain.com
I am using the following plugins:
– Advanced Post Types Order (https://www.nsp-code.com/)
– Lightbox Plus
– Search Everything
– User Role Editor (https://shinephp.com/user-role-editor-wordpress-plugin/)
I think all of them are common plugins.
This weekend I will deactivating them just for to be sure.
What do you think could be happening.
Thanks!
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeWell my main problem is that wordpress, not me, automatically change the url of my second blog in the database.
I have to blogs: myblog.com and myblog.com/en
well, I don’t know why but when I login into the admin wordpress changes the url of the secondo blog to myblog.com, removing the /en string at the end.
Each time it happens I go to the database, find the table wp_options of the secondo blog and I see that the field siteurl was changed to mydomain.com. If I want my blog work again I have to go to my database and change it be my self.
I don’t know what its happening
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeIf you go to https://mysite.com/en or https://www.mysite.com/en you get the same page and no errors, you can see the page.
What I can not understand it’s why wordpress change the url in the data base.
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeBoth are working, if I point my browser to mydomain.com/en the site its working but if I go to the admin > mysites, both are redirecting to mydomain.com
If I force in the browser mydomain.com/en/wp-admin, I can access to the second blog admin.
The only think that is changing it’s the field siteurl of the table wp_3_options in my data base.
In this row of the db, the url have to be https://www.mydomain.com/en, but sometimes, wordpress remove the /en and leave https://www.mydomain.com
It is a problem because I am using the fuction site_url() in my theme to get content depending on the language, and when wordpress change the url and remove the /en the website throws a few errors.
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHi,
Today it happened again, The url of the second blog have changed and now both have the same url.
It’s to weird no??? I removed the canonical redirection as you told me but it’s happening again.
if I go to mydomain.com or https://www.mydomain.com I can see the website and I removed the canonical redirection.
What should I do????
Thanks you very much!
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHello,
I have removed the canonical redirect and at the moment it is working good.
I made some test, changed a few post and all seems to work fine.
Do you think this was the problem??? What a canonical www redirect means???
Thank you so much for your help!
Forum: Networking WordPress
In reply to: Url problem / wp_3_options table changeHello,
Thanks for your help, I am completely desperate.
If I am honest I don’t know what I am doing exactly with this .htaccess.
Thanks
# canonical redirect to no www RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] # END WordPress
Forum: Fixing WordPress
In reply to: Custom searchNo thanks, now it is working and I don’t get any error.
I was wrong, I insisted on creating a page in wordpress and assign to it a template named as page-search.php
It is much simple just using the search.php.
Thanks!!
Forum: Fixing WordPress
In reply to: Custom searchOk, my theme didn’t have a templete file search.php, but now I created it and yes, it uses it.
Following the tutorial I think I have understood that I don’t need the search.php file and that I have to created a custom searchpage.php as a template.
What i should do now???
Thanks a lot
Forum: Fixing WordPress
In reply to: Custom searchThanks,
I followed this tutorial two times and I can’t get it work.
The problem is that I can’t make my custom search page works.
If I go to https://www.mydomain.com/wp/search it shows the sear page, but if I introducce a search string I got and error 404 page not found.
I don’t know what to do, can you help me???
This is my custom search page:
<?php /* Template Name: page-search Develop by Alvaro Vieitez Company: Framestorm */ ?> <?php global $query_string; $query_args = explode("&", $query_string); $search_query = array(); foreach($query_args as $key => $string) { $query_split = explode("=", $string); $search_query[$query_split[0]] = urldecode($query_split[1]); } // foreach $search = new WP_Query($search_query); ?> <?php get_header(); ?> <div id="container"> Resultados de búsqueda <?php get_search_form(); ?> </div><!-- #container --> <?php get_footer(); ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]
Forum: Themes and Templates
In reply to: Direct urls or unique urls to custom categoryMight be helpful if some one knows how to access vía url to my custom post type categories.
example:
https://www.mysite.com
https://www.mysite.com/work
https://www.mysite.com/work/printI have a custom permalink estructure like this: /%postname%/%category%/
If the user enter https://www.mysite.com/work/print, WP automatically redirect to https://www.mysite.com/work
?WHY??????
Any ideas?????