I recently installed Xampp on my server so I could test out Apache/MySQL/Tomcat. Upon first opening the site, I want the users to go to a login page -- then go to the 'home' page.
I have the login page set up in a separate folder and it works great but I have to open it manually by typing the address in the browser. I have a link on the login page that allows the user to go to the 'home' page (after credentials are verified).
How do I tell Apache to go to this different login page the first time only? Right now it only goes to the 'home' page and I can't figure out how to tell it to go anywhere different.
Any help?
Related
I downloaded my website from server to configure in local server, after that I did search and replace.
Now the website shows the home page but when I click on each page it shows wamp server details.
I do not know how to handle this problem.
I have read that go to dashboard, setting, permalink and then save but it did not work for me.
I have tried myself to solve my problem. I have saved so many times the permalinks in setting part, but it did not work for me as other people mentioned to do this. I just changed my database name and again saved the permalinks in setting parts and finally it works for me.
I have a Cakephp 2.3 website with a login system that works absolutely fine when accessed directly via its URL. Navigation between pages that don't required being logged in works, when you submit the login form with correct credentials it takes you to the restricted area, if you click on a link that requires being logged in the system recognizes that and takes you to the login page, etc.
However, when I load that same website from another website (using an iframe), the login system stops working. If you submit the login form, even with the correct credentials, it takes you back to the login page. If you try to access a restricted page, same thing. All this without showing any failed login errors or a "you're trying to access a restricted page" message that it shows when accessing the website without an iframe. The navigation between pages that don't require being logged in does work fine though.
The iframe code is as basic as it gets: <iframe src="https://mywebsite.com/" width="100%" height="700" frameborder="0"></iframe>
I've been dong some research and I can't figure out what's going on. I've tried enabling CORS just in case, because both websites are on different domains (same server), but that didn't make a difference. I don't have any code on the website, as far as I know, that would cause this. Both websites are loaded via https.
Any ideas of what could be going on?
I have a website at lets say - abc.com
Whenever, a user hits abc.com, I redirect him (using an index.php) to abc.com/home.php. Now a user can login on this page, and go around with his work.
Problem comes, when someone explicitly types www.abc.com in a new tab, the code still works and he is still being redirected, but the user is treated as non loggedin user. even though he just logged in earlier in a previous tab.
I don't know the cause of this problem, and how can I resolve this. I do know that my servers have virtual hosts setup in apache that direct my requests to /var/www/html/abc
Can I solve this by htaccess redirect? Or do I have to make changes in my virtual host settings?
EDIT
Solution at - Allow php sessions to carry over to subdomains
Dont forget to close your browser and open it again, after you restart your server after making change in php.ini
I saw this mentioned before, but I couldn't find an answer.
I just migrated from my staging site to live, using a plug-in All in one WP migration. After a fresh install of wordpress + plugin on the new site, I took the .wpress file exported from staging and uploaded to the new.
Everything was successful, until I was redirected to the perma-links settings area to just save the final changes. However, from then any setting I touch in the perma-links section breaks my site. Any link in front end or back end will automatically download to browser.
After some digging, I found its related to the htaccess page. If you haven't already noticed, I'm new to this. I don't know where to start to test what could be wrong with the htaccess page, so I wiped it clean to at least be able to navigate the site.
Anytime I try to touch any permalinks setting in the backend, it will re-write in the faulty code and I have to go back into the wipe the htaccess again.
The second issue is it's causing any page (besides the homepage) to 404. If I try to preview a page from backend (mywebsite.com/page1) it 404's, and of course front end. Same if I try to create a new page.
Please let me know any other info I can provide. I am open to any suggestions.
Thank you
step 1 export your database then open it in notpad++ then ctrl+f find your website old URL suppose stackoverflow.com/dev and replace it with your live site stackoverflow.com after replacing all URL make save it and make zip again.
step 2 import the database into your site database.
step 3 go to your dev site and download all setup with WordPress now paste the all files into new website directories.
step 3 open wp-config.php file and changes database name username and password.
step 4 open your wp-admin and use the username and password same which one you using for the dev site
step 5 go to permalinks and set it %%postname%%
these are simple steps and I am sure it will work for you. no need to new WordPress installation.
Could provide us with your .htaccess file?
But as someone noticed - problably you don't have mod_rewrite. Contact your hosting company, they should be able to fix your problem
So I'm completely new to working with WordPress and I've had to figure this out by watching YouTube videos and reading articles. I'm not a programmer, all I really understand is HTML & CSS.
So I finished the site on the localhost and I tried to upload it to my hosting service. I created a database and my hosting provider walked me through on creating a subdomain. After that was completed I logged into the admin side of to redirect the URLs. Once I clicked 'save' it logged me out and when I tried to log back in it gave me this error "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." However, the cookies are enabled and the site is live in its subdomain. When I go to test.mydomain.com it works, there's a few things broken but it's showing up. For example, when I click a link it takes me to a localhost url but if i click on the link again it takes me back to the test.mydomain.com url. Plus, when i go to the admin site it's still giving me the error. I have no idea how to go about fixing this. I tried to figure it out but I don't really understand since I'm not familiar with WordPress. Please help!