Duplicated page elements - html

I am working in boonex dolphin 7.0 in my site when I am taking photos module by this URL:
http://www.sportzshowcase.com/sports/m/photos
Page getting duplicated, Is that htaccess problem ?

copy the htaccess file from from original dolphin base folder and paste in your localhost project and run project......otherwise change apache httpd.cof file setting(LoadModule rewrite_module modules/mod_rewrite.so)

Related

apache2 not serving css file despite showing file in directory

I have a website I am trying to host, but for whatever reason, apache2 is refusing to serve the css file I have for my website. I have not change any settings and everything is completely default. I installed apache in the past 2 weeks so everything is clean and fresh.
All I did was copy all the files generated by jekyll from the _site folder and put them into /var/www/html on my server. now, when I go to my website, I can see all the content and the html loads correctly. The links work, images work. but there is no css styling available.
Because the default settings on apache arent that good, i can browse the folder contents. for example, my css file is store in /var/www/html/assets/css/style.css. So, when I access the website by going to https://mywebsite.com/assets/css, I can see the file structure and apache shows that I have a css file in there. but, when I try and click on that file, I get a
Not Found.
The requested URL was not found on this server.
----
Apache/2.4.52 (Ubuntu) Server at xxxx.com Port 443
All other files can be browsed in the folder structure and every file appears to be present, its just the pesky css file that will not load.

Downloading file from ubuntu server through html

I have my domain pointing at a ubuntu server hosted by amazon ws, and I have my index.html file that gets loaded when someone makes a request to my domain, in the same folder of that index.html file I have another file, and I would like to make it possible to download it from my website. How can I achieve that? I tried with an iframe tag, and giving it src="./myfile.jpg" but the server tries to look for it at www.mydomain.com/myfile.jpg and it can't find it there. Can anyone give me any suggestions?
Btw my files are inside /var/www/html folder, which from what I understood is the default folder for public files on ubuntu.

Copy website folder and contents to Apache web server

I just started setting up Apache web server to try and test a website I am building. After installing LAMP (I'm on Ubuntu 16.04, if that's important), I copied a folder of HTML and CSS code that I had to test. Here is the folder's contents:
Main folder: testsite
Subfolders: articles, images, CSS, HTML, scripts
Contents:
articles -> .docx files
images -> .png files
CSS -> .css files
HTML -> .html files
scripts -> .py files, but one .html file too
When I went to test the Apache web server, it gave a 404 not found. I'm absolutely clueless as to what could be the answer. I tried renaming the maincode.html file that I had to index.html and putting it in the testsite folder, but it didn't change anything. Is there anything I need to do to fix this?
Here's a screenshot of the 404 Not Found page, with the Developer Console open (in Chrome)
I'm not sure what other information I need to provide, but I'll gladly give any info you need.
Make sure your testsite's conf file has the DocumentRoot property set to the path to your testsite folder. The conf file is probably /etc/apache2/sites-enabled/000-default.conf.

Blank page displayed when accessing html file from local host in XAMPP

I've been going mad for the last two days trying to understand why my localhost connection merely displays a blank page in any browser for my "index.html" file in my "htdocs" folder in XAMPP. The page is blank in every browser (Edge, Chrome, Firefox, IE). Strangely, I can view the source code fine for the page in the browser though! Even more strangely, my "index.html" file displays a blank page even when it's loaded from another location other than htdocs (such as the desktop). And my test html file I created displays just fine using the htdocs folder in XAMPP. I'm using the default Apache ports 80 and 443. I'm also using Windows 10.
Could this be some error in my webpage code? I'm doing pretty vanilla stuff here: just CSS/HTML and Bootstrap. All CSS/HTML/Bootstrap files are in the htdocs directory. If you'd like to see the full code, you can go to my publicly hosted site at stephengladwin.com You can also view my current XAMPP code for my "index.html" file in the attached screenshot.
Here's what I've tried:
-Unticking the "use ports 80 and 443" box in Skype
-Re-installing XAMPP
-Updating the config file to listen to a different port (used port "123")
-tried disabling "World Wide Web Publishing Service" in services.msc
Thanks in advance for any help you can provide!
XAMPP Code
The best question is the one you answer yourself! Turns out it was a bootstrap error. In the Chrome browser inspect tool I opened the console and lo and behold, there was an error where the browswer couldn't access the "tether.min.js" file which bootstrap requires. Indeed I did have the tether file linked in my index.html file, but it was not in the right order in the code flow. It had to come before the javascript link. Now my index.html page displays fine on the localhost via XAMPP!

HTML and HTAccess

I have been struggling with this all morning and I have not had much luck.
I am trying to get the following stackoverflow post to work: How to remove .html from URL
Here is my file directory with the htaccess file:
Here is my code that works fine using .html
So I went into sublime text and posted the same code into a .htaccess file as shown here (also in my directory first pic):
I then changed my links and removed .html
But I get an error
If anyone could please tell me what I'm doing wrong I would be grateful! Been bashing my head on this all morning
.htaccess is a file used to control access for Apache web servers. It won't affect anything unless you're running and accessing an Apache server. From your screenshots I can see that you're directly opening a file from your hard drive.
Your browser is saying File not found because you're trying to access a non-existent file. The address bar in your browser should say this:
file:///Users/mikegeng/Documents/GitHub/MichaelGeng.github.io/index.html
.htaccess is used by Apache Webserver. You must install and configure an Apache Webserver and access your site through http://localhost for example.
Currently your .htaccess is completely ignored until your site is served by Apache.