I had a drupal site on my local wamp server but after having to reformat my computer and reinstalling wamp and all that, Clean URLS is messing up. I made sure my apache had mod_rewrite enabled and after that i just get a 404 error for everything. When i try to login i also get a 404 error. What can i do? I've looked for a while and cant find anything.
I believe it's mod_rewrite that needs to be enabled.
Got it to work. Had to navigate to the login page directly (/?q=user) rather then just using the login block. Then navigated directly to the clean url page (www.mydomain.com/?q=admin/config/search/clean-urls) and disabled them.
Related
The problem is quite confusing and I haven't been able to find a solution for this, I tried clearing caches, deleting HTACCESS file, still doesn't work.
I am using WAMP, and my project's homepage is in a directory, so the URL structure is:
localhost/project/shop/
There are other pages, contact.html, about.html etc etc.
I wanted to rewrite the URLs to show it without .html so I used the suggestions here:
How to remove .html from URL
Most of those didn't worked well, the problem was that it instead taking me to
localhost/project/shop/about
to me to
localhost/about
So I quit the idea of doing that on the localhost, so I removed the htaccess file and all other links worked fine, except for one contact.html, somehow it is cached and now going to localhost/project/shop/contact.html still takes redirects me to localhost/contact
If I open the localhost in an Incognito tab or if I add ?random=anything... the links works.
Any idea where I went wrong and how do I fix the issue?
Thanks.
When I access localhost or 127.0.0.1, I should be displayed the index.html default page from apache.
However, when I access it, it displays the Laravel welcoming screen.
I do have some Laravel projects under /var/www/html, indeed.
But it seems Apache is confused as to what page to display in the root directory, displaying Laravel's welcome screen instead of the usual index.html.
This would not be much of a problem, but it also happens that, whenever accessing any other project which is not Laravel-based, i'm faced with Laravel's 404 screen.
Any ideas as to what happened here?
Some minutes after typing this question, i found the answer myself.
I deleted the file /etc/apache2/sites-enabled/000-default.conf, which sets the default response for localhost request.
So, Apache took Laravel's page as the default for answering any request to the server.
Here's a gist I made for recovering this file.
I have a site with symfony 1.4, and installed the SSL certificate in the server, the home page works but when I click in any link I get an error 404. But if I use the Dev mode from symfony I am able to navigate through all the website... weird to me.
I tried to install the plugin sfSslRequirementPlugin - 2.0.0, when I enable it I get this error when loading the page: net::ERR_TOO_MANY_REDIRECTS for any page.
Any idea??
Yes, this is because of some code defects in .htaccess file. Can you please send me .htaccess file so that we can investigate more on this issue.
The error net::ERR_TOO_MANY_REDIRECTS is because of .htacess as it is redirecting the page. I had faced the same issue once.
I recently tried to make an .htaccessfile work on one of my MAMP websites locally and it created an issue: Every time I try to open my LOCAL website, it redirects me to the LIVE website.
I tried to delete the .htaccessfile and put back every file I modified to its original state but in vain.
Does anyone know where this issue could be originating from and how to fix it?
P.S. My website is not made on WordPress.
Hi I'm used to editing sites locally on my MAMP to test out changes before going live. In this case though the site has a SSL certificate and wants to use it when I go to admin.
So I can't go to admin. The error message says:
(Error code: ssl_error_rx_record_too_long)
It's a Joomla site I'm trying to log into locally ie:
http://localhost:8888/site/administrator/
I've tried https as well, but same thing. Also same thing is Safari.
I just need to turn off ssl, it must be a file somewhere in the site I downloaded.
Sorry, I've answered my own question. I just had to disable the default Joomla seo urls in the Joomla config file. No sure why it fixed it though