I got a huge redirect problem, I set up a sub-domain
http://subdomain.myspace.com/
and copied a project over as well. Owned it, set chmod particular on 777 so me and the Designers can work on this one, this works fine. Problem is now, whenever I call the URL of this sub it redirects me to the
http://www.originalsite.de
original Site. Even when I take out the .htaccess AND replace the index.php, which is a hard way to go for it, it redirects me. For this is by far not the first time I do this, what makes me even more surprised. But what kind of redirect can this be?
No redirect via .htaccess nor via index.php. I know there's no code but the company I'm working at won't allow me to post the code.
I hope anyone can help.
There is not enough information on your setup to determine the cause of the redirect but i have a guess. If you have ruled out all the possible scenarios of a redirect being in existense (i.e. Htaccess, php etc) then check your caching. Chrome and Firefox sometimes cache dns and http requests.
Try the following:
Open an "incognito" window in chrome or "Private" in firefox, and try loading your subdomain.
If it still redirects, then you still have a hard redirect somewhere hidden (Perhaps in myspace settings)
If this works and does not redirect, then it's my guess above with caching (Clear everything and you should be fine - Plus disable prediction and navigation errors correction in your chrome settings)
Hope this helps
Related
Hi I've created a dev site for testing my creations before they go live.
I've come to the site and all the images aren't there so I thought that may be a problem with the uploads folder, reuploaded from the live site and they still didn't appear.
Came to log in to wp-login and there was no styling on the login fields. Was strange so I tried to log in and it sent me to dev.mysite.com/dev.mysite.com/wp-login.php
So as you can see it seems to like to send me to a duplicate of the url and I can't for the life of me figure it out.
My wp-config file is as is:
define('WP_HOME','dev.mysite.com');
define('WP_SITEURL','dev.mysite.com');
I've change my actual url for security reasons as I work for a healthcare company. I'm sure you guys can understand. Any Idea why I might be getting redirected?
Also when I type in dev.mysite.com/wp-admin it takes me to the backend of wordpress as I have logged in through the buggy no styled form but then the backend of wordpress has no styling what so ever. See image below:
None Styled Wordpress Backend Image
Really hope someone is able to help as I'm baffled.
Thanks!
WP_HOME and WP_SITEURL should be a full URI, ie. http://dev.mysite.com. Also make sure your htaccess don't contain any wrong path redirects.
Edit: You get un-styled admin because Wordpress has the wrong base URI, so it is searching for stylesheet and scripts in the wrong folders. If you open the developer console you will prolly see a lot of 404 errors (file not found).
I am really new to Drupal and playing around with this existing Drupal site.
I did a FTP transfer of all the files to my local computer directory. I currently got it on a Vagrant box and I can access the site via http://192.168.56.101/html.
I can do http://192.168.56.101/html/anything-but-user and it brings me to the proper area on the site. However I can't do localhost/html/user, because it redirects me to the website URL rather than the local URL.
I tried clearing the cache (with Drush). I scanned all files in the system and changed the web url to the local URL [not sure if I need to do any other command], and I can't seem to find anything in the .htaccess files that would lead me to this.
The href="/user I would greatly appreciate any advice or help in figuring out this solution.
--UPDATED
There was a module called "Secure Pages" that was causing the user and registration links to be locked and static to prevent redirects to phishing sites. I had to disable this module using "drush pm-disable securepages" in the terminal.
Some typical items you may want to check:
Check if you get the same problem using another browser. If with another browser it works, then it is pretty sure a cookie problem. To solve that, delete the cookie in the browser where you have the problem.
Make sure "clean urls" is enabled. Refer to "https://drupal.stackexchange.com/questions/165029/clean-url-leads-to-duplicate-url-after-migration-to-another-hosting/165044?s=1%7C3.9647#165044" for more details on that.
Make sure the value of "base_url" is set correctly (in your settings.php).
If module Secure Pages is enabled, then try to (at least temporary) disable that moduel to see if it helps.
Apparently, there was a mod called "SecurePages" that was causing the URLs to be static to prevent someone from changing them and redirecting users to a phishing site.
First
Let say that i have www.domain.com that are client site and user login and do all the thing that he want (site is main and he use POST method for login adn other things and HEADER redirect if login are success)
But i not want user to see original www.domain.com i want when they enter www.name.com/dashboard.php to see content from www.domain.com/dashboard.php but him URL bar to show www.name.com/dashboard.php ..and like this all other page that can have original www.domain.com
I found this site:
http://www.htmlremix.com/css/permanent-url-masking-for-mirroring-website-using-php-and-htaccess
Adn use script but when are entered user login detail noting happen!! Just home page reload.
I try everything that i think may be cause problem and not found how to solv it .. So please help me!!
Thanks Allot
P.S. If have some more good way that can i use also will help me!
that cant be achieve with a htaccess file.
You need different things.
possible solution could be:
apache mod proxy so you could proxy everything through that url.
the other way could be a php written some kind of proxy. Working with curl or and remote configured fopen.
But be careful to also send the post data and the cookies, otherwise the user session could not be handled if its cookie based.
If both domains are on the same server you could easily set this up with a vhost configuration in apache/nginx what ever you are using.
I don't really know what is going on or anything, but I want to make my entire site done in Codeigniter, to be SSL encrypted, EVERYWHERE, but the problem is, I have the base_url in the config set to https://www.mysite.com/
But when I load it up, it shows that the page is unsecure (the red crossed out https on chrome)
I made sure all the images on the page, all the included css/js files, are all using the https as well, and I still get that error...
We built a website for a client using Wordpress. We used a testing server which always works well. Wordpress was hosted as a subdomain, i.e. http://wordpress.ourcompany.com. I have direct and full access to the server. In the etc/apache2/sites-available directory the file describing the site in question uses the final name http://clientsite.com as ServerName, our temporary subdomain (under which we have been building) is a ServerAlias.
When we were almost ready, we of course asked the client (who already had a website) for their domain login. We changed the DNS like always. It resolved, the site worked well. Although Wordpress kept redirecting (of course) to the subdomain-variant, we could enter the site with the full domain.
Now comes the culprit. I changed the Wordpress settings (siteurl and home) to match the new site. The front-end works brilliantly. However, the back-end is unreachable as long as the settings are in this way. The login page shows up, but just redirects back to itself. If I simply change the Wordpress settings (in the options table) I can log back in, but we want to rid the subdomain necessity (of course).
Things I've already tried (I'm not one to easily ask of your time):
Clear .htaccess
Clear my cache & cookies
Different computer, different browser etc.
Change only the home and not the blogurl value. Sadly, this corrupts some plug-ins
Remove all plugins
Comment some lines as instructed in the wp-login file
Naturally, everything I could find on codex.wordpress
Set the admin cookie path
So, brilliant collective mind that is Stack Overflow, what did I do wrong? DNS? Wordpress settings? Thank you in advance.
You need to go into the settings on the live server and change the URL's to the current site. You'll have to do this by accessing the database directly. It's the wp-options table, and there are 2 entries where the url's are the value. Update those. That should fix the looping.
I found an answer today : the user in the database didn't had the right permissions. You can look up in the error log if there are lines that indicates this.
I also had tried before : removing all content from htacess, reinstalling wordpress etc.