All Questions

Tagged with
Filter by
Sorted by
Tagged with
3
votes
1answer
44 views

500 error after migrating from Easy Apache 3 to EA4 on Centos6 VPS

I made the mistake of clicking the button in WHM to migrate from Easy Apache 3 to EA4 and now I am receiving a 500 error when I try to visit my site. What have I broken and how can I troubleshoot the ...
3
votes
1answer
91 views

Redirecting to subdomain, impact on SEO?

I've been working on a web platform project for a client, and we are nearing completion. Basically, the platform is a small social network for a specific group of people. Part of the specification is ...
4
votes
2answers
68 views

.htacess - Remove .html from the homepage but not from folders within within that website

I'm trying to remove the .html from my landing page, an example would be instead of domain.com/contact.html it would be domain.com/contact while at the same time keeping the .html for all the folders ...
0
votes
1answer
61 views

Add content to start of all requests

In a .htaccess file or another server configuration file, is there a way to add content to the start of all requests, for example: index.html World! .htaccess or another server configuration file #...
1
vote
1answer
876 views

Link stylesheets up directories using .htaccess [duplicate]

How do I move up a directory using the <link> in HTML for my stylesheets to work while using htaccess? My directories are as: index.php .htaccess css/ styles.css php/ login.php In my ...
3
votes
1answer
142 views

Issue with 301 redirect to Index page only

I have a bunch of 301 redirects in my .htaccess for old pages, which work great. But a problem that's been plaguing me for years is that there's a lot of links out there to my old index page (index....
3
votes
2answers
864 views

.htaccess image localhost

So I've created simple .htaccess file as following to make my webiste more SEO: # PROTECT FILES <FilesMatch "\.(htaccess|htpasswd|ini|fla|psd|log|sh)$"> Order Allow,Deny Deny from all </...
2
votes
1answer
318 views

My users are getting 302 Found page if they don't write https in address bar, how can I prevent this?

I host a forum website in DigitalOcean's cloud servers, using Ubuntu 16.04, Apache 2.4.20, PHP 7.0.8 and MySQL 5.7.12. I tried to troubleshoot with cURL about what is the problem, these are the ...
2
votes
1answer
529 views

Internal Server Error 500 when specifying AddHandler and FCGIWrapper for PHP in .htaccess

For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy: AddHandler fcgid-script .html FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html A few days ...
1
vote
2answers
1k views

How can I remove the .html extension for static webpages that are indexed so they'll still work in a WordPress site?

I have a static HTML website with less than 100 pages and 99 of them are indexed in Google's search engine. I want to convert it into a WordPress website, but there are some problems I'm worried about....
1
vote
3answers
4k views

index.html in subdirectory will not open

I want to have a website structure like this: example.com/ - homepage example.com/solutions/ - this will be the solution parent page example.com/solutions/solution-one - child solution page example....
5
votes
2answers
2k views

How can I serve all resources under HTTPS instead of HTTP without changing their URLs in the HTML code

I know that by using an .htaccess file I can redirect everyone to https://. However, my SSL certificate complains if all the content isn't served under HTTPS. Is there a way to convert all the ...
2
votes
2answers
7k views

Using .htaccess, can you hide the true URL?

So I have a web hotel with 1 main website http://www.myrootsite.com/ and a few websites in subdirectories, in a folder called projects. I have domain names pointing to the subdirectories, but ...
2
votes
1answer
963 views

How can I set my robots.txt file to let bots not crawl certain folders in root directory?

I have a small website with about 20 pages with .html extensions, containing unique articles I wrote consisting of about 1000 words or more. These 20 pages are the main feature of my site. Root ...
2
votes
1answer
783 views

Remove fb_action_ids of the URL with .htaccess

Sadly my website host will not let me have more than one .htaccess and therefor I am forced to include all rules for path parent and child virtual/physical URLS. My directory tree is as follows: ...
3
votes
1answer
110 views

Multiple websites all sharing the same layout

I have a client that has a website. He owns around 200 domains, and wants each domain to contain content from the main website. The header, footer, and navigation bars will remain the same for each ...
3
votes
1answer
580 views

Removing file extensions off the url

I am looking for a way to remove the extensions off the end of the Url. So say for example www.example.com/about.html. This would change to www.example.com/about I've looked around and searched for ...
1
vote
1answer
2k views

Redirecting a subdomain to an HTTPS website

I need to redirect a subdomain on my website to a third party HTTPS website. We have our website hosted on GoDaddy and I tried their subdomain forwarding mechanism but that didn't work. That's when I ...
0
votes
3answers
377 views

“Index of …” directory's files listing

On my courses we've got homework on site in folders such as: http://example.com/files/tasks1-edc34rtgfds http://example.com/files/tasks2-0bg454fgerg http://example.com/files/tasks3-h1dlkjiojo8 ... ...
3
votes
1answer
1k views

CMS Made Simple: Why does home page return a 404 under www subdomain?

Anyone know why my homepage won't load with the www prefix. Links such as www.example.com/about-us will load fine but www.example.com returns a 404. Every page works including the home page if ...
3
votes
1answer
162 views

JS and CSS caching issue: possibly .htaccess related

I've been using the HTML5 Boilerplate for some web projects for a while now and have noticed the following issue cropping up on some sites. My CSS and JS files, when loaded by the browser, are being ...
2
votes
2answers
168 views

How to redirect all URLs that contain my domain name in the path from .htaccess to avoid crawl errors

I am getting a lot of errors in Webmaster Tools and basically there's a lot of links ending like this: example.com/links.php How can I redirect these links, to shave off this part at the end? For ...