I created an index.html and several other pages. I then put them in my Wamp Server www directory. They worked fine, but now I have deleted them and put only a file called m.php. But, whenever I go to localhost, I still see the index page. Also, ever since I changed the icon of the index page, any html file in localhost still has that icon, even after I deleted it and the index page. What is going on?
Do a hard-refresh in your browser by pressing Ctrl-F5 on your keyboard while your website is in the window/tab. This will cause your browser to skip any caches and ignore existing expires headers on the files it pulled.
If that does not work, make sure you are actually working in the right folder, and also that you are not being redirected.
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.
I'm trying to upload some images in my wordpress backend, but it fails every time. It could be permission issues because I have had trouble with that earlier in the project. But the weirdest thing is that I see on my server that the media folder is suddenly empty, while all the media in the wordpress backend is still there and the website is running fine. Anybody got an idea how this could have happened?
Try to edit one of the picture in the media on admin dashboard, there will be a text field titled 'File URL' on the right side.
Paste that into address bar and see if the browser loads it correctly. If yes then the problem is on the folder permission (or you might have opened the wrong directory), if not, you might wanna try to clear the browser cache or use another platform to open it.
Hope it helps!
The problem i am facing is that whenenver I am typing the path of any sub directory n my website like localhost/MySiteName/register I am getting redirected towards the wamphome page . Any clicks after that on the wamphome page is giving path like (if i click on phpmyadmin) localhost/MySiteName/register/phpmyadmin . I have looked extensively through the code and the net but could not make out why such thing is happening ?
First check your .htaccess file , is it present or not. If it is present then follow the below mention steps.
Open your wamp and click on it.
Now go to Apache>>Apache Modules
And check rewrite_module and then restart you WAMP. Please refer attached screen shot.
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.
I'm curious about a WAMP + Joomla feature...
On my project folder and within /www/, I have several Joomla folders that are accessible (features inside are usable) but when directly opened from the Web browser show no contents (but no error message is shown)... This is a behaviour I would like to make other folders have but I don't seem to be able to get it!
Let me explain a but further, folder called "CLI" if opened in web browser as:
.../components
returns a blank screen... But some of my modules are using content within, so folder is not restricted but contents are not visible through Web brower.
Now I have another folder:
.../clients
Which I would need to behave the same way as many modules of my site need this, but I can't afford to leave it "open" for users (if someone enters ".../clients" on their web browser, I need the output to be blank, same as the .../components folder above). Currently, if someone enters .../clients on a web browser, they can see all files within, this is a CRITICAL security bug for me.
I've succeeded to disable them by doing DENY FROM ALL in httpd.conf. However, this is not valid as it absolutely restricts everything within the folder, causing my modules to crash.
Hope you get the point, if not, happy to clarify :)
MANY MANY THANKS for your support!!!
PS - If possible, answer in a dummy way as I'm new to all of this Apache stuff.
The way Joomla returns a blank screen is by adding a blank index.html file in. Browsers prioritise a index.html file to display over the index.php file etc. So literally put in a index.html file in the subfolder containing:
<html>
<body bgcolor="#FFFFFF">
</body>
</html>