Questions tagged [.htaccess-configuration]
.htaccess is a configuration file for use on web servers running the Apache Web Server software.
113 questions
10
votes
5
answers
8k
views
How to remove the 'index.php' from URL's?
I was wondering if it is possible to remove the 'index.php' that is shown in every URL.
8
votes
3
answers
1k
views
Use Joomla redirect component to fix broken URLs
Can anyone help with using J3 redirect component to fix this kind of broken links:
https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page
To:
https://www.portal-gestao.com/item/9999-...
8
votes
2
answers
5k
views
How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?
This is my first time ever in PHP and my first time ever with Joomla. I come from a heavy non-Web C# / .Net background.
I have written a custom Joomla module that interacts with a third party ...
6
votes
4
answers
17k
views
500 Internal Server Error after renaming htaccess.txt to .htaccess
I'm getting 500 errors showing on my site after renaming htaccess.txt to .htaccess
5
votes
3
answers
5k
views
How can I redirect old domain to a new domain?
I am newbie on Joomla. I have bought a new domain for my site that I want to use and have my site running on two different server under the 2 domain accordingly.
I need to redirect the old domain and ...
5
votes
3
answers
4k
views
Change http to https in source code when using SSL
I recently enabled Force_SSL on one of my Joomla sites (by enabling "Force SSL" in Global Configuration), but I run into problems with blocked content (non-SSL content) from both Google fonts and ...
4
votes
2
answers
615
views
Multilingual Joomla site with multiple domains
I have Joomla site with native language system and my site looks like this:
www.mydomain.pl
www.mydomain.pl/en/
www.mydomain.pl/de/
www.mydomain.pl/se/
www.mydomain.pl/dk/
I have domain www.mydomain....
4
votes
6
answers
18k
views
Administrator page 404 not found
I can't access administrator's page; it returns 404 error not found. Although when I rename .htaccess to htaccess.txt, admin page works, but the whole site returns 404 error not found. When I rename ...
4
votes
3
answers
1k
views
What is the best way to switch an existing Joomla site from http to https (SEO)
What is the best way to switch an existing Joomla site from http to https (SSL), technically and also from an SEO approach.
1st, i had a rule in my htaccess but it was not perfect :
RewriteCond %{...
4
votes
1
answer
660
views
Site keeps browsing itself all the time
I run the server where this Joomla! site is hosted, so I have root access to it. There is something in the configuration, or somewhere in its code, that keeps browsing the site itself. If I run
# ...
4
votes
1
answer
770
views
Stopping a redirect in .htaccess
This is a real novice question regarding .htaccess files. I have read up on it but I really have no clue.
We have a site called originalsite.com.au that is redirecting to www.examplesite.org.au (see ...
3
votes
2
answers
4k
views
"Perfect" .htaccess for Joomla 2.5
I would like to know what should I implement in my htaccess file for making my website faster and secure.
What do you recommend me?
3
votes
2
answers
184
views
Offering different content to different clients
In an Intranet I have two groups of clients, each well known by their IP address. I want to present Joomla module A for clients from both groups, module B only for the clients of group 1 and module C ...
3
votes
2
answers
595
views
Joomla and PHP versions
I work on a number of Joomla sites for clients, across multiple (differing) hosting environments. This can be a pain when troubleshooting as some of the hosts are running old versions of PHP (5.2) and ...
3
votes
1
answer
14k
views
Joomla remove index.php - redirect to homepage .htaccess
Following is my .htaccess, SEF and Use rewriting enable in global config. But i can still access my home page with two urls; for instance: www.example.com and www.example.com/index.php.
Am I doing ...
3
votes
2
answers
1k
views
Redirect URLs using Redirect component or htaccess
In Joomla 3.4 want to redirect this page:
https://www.portal-gestao.com/component/k2/1422-como-i...%C3%A9tica-na-sua-empresa.html
To this:
https://www.portal-gestao.com/item/1422-como-i...%C3%...
3
votes
2
answers
75
views
Using Extension Manager to Install Packages from a Password Protected Directory
This question is for J3.3+
I'd like to set up my extensions in a password protected directory on one web site.
This will act as repository for customized extensions to be used by several other ...
3
votes
1
answer
367
views
I'm using sh404SEF on HostGator. What should I do with my .htaccess?
I'm new to sh404SEF, but I understand it is widely used. I host with HostGator.
I'm using sh404SEF primarily to generate search engine friendly URL's.
sh404SEF advertises that I can do this without ...
3
votes
1
answer
615
views
sitemap.xml rewrite rule no longer working
We use a base build template for most of our site builds, and until a few months ago we have not had a problem re-writing the sitemap url to sitemap.xml. The rule we use is:
RewriteRule ^sitemap.xml$...
3
votes
1
answer
2k
views
htaccess 404 Redirect Not Working
I recently redesigned a site and there are loads of 404 pages, so to simplify things I want to add a redirect to my htaccess, redirecting any 404 pages to the home page.
I though it was as simple as ...
3
votes
1
answer
142
views
Impossible to set my joomla site timezone to Pacific/Tahiti (hosted in UTC)
I have exactely the same issue like in this post.
For a Joomla site online booking (Joomla + Yootheme + Vik Appointment) I need Pacific/Tahiti default timezone and I still have UTC despite all my ...
3
votes
1
answer
420
views
K2 URLs not working after migration to Joomla 3
I've just migrated to Joomla 3 and my K2 URLs are returning 404's.
Before the migration this was an example of a correct URL: [url=https://www.portal-gestao.com/item/7687-o-que-significa-mass-...
2
votes
3
answers
524
views
Joomla random lack of access permission
When my user tries to edit an article in frontend, he gets "403 - you don't have permission to access(#some id of article)" and when he goes back in browser and tries again usually he can get access - ...
2
votes
2
answers
2k
views
Spammy Referral Traffic on Joomla site
Yesterday I was looking into my Google Analytics and found some spammy refferal sites, which I want to block. Can someone please help in this regard?
Following are Spam sites:
ILoveVitaly.Com
Priceg....
2
votes
2
answers
87
views
How can I make a directory accessible without putting it on a menu?
I want users to be able to download a file from my Joomla website, but I don't want the URL posted anywhere on my site. How can I make a file downloadable without adding any links to it from my site?
2
votes
3
answers
2k
views
Remove index php add language code in the url
I built international site and it adds language code to the end of the urls: www.site.com/index.php/en/ I enabled SEF urls and url rewriting in global configuration, I tried many .htaccess snippets to ...
2
votes
3
answers
449
views
Joomla 3.x and .htaccess
I have a working Joomla 3.2 website and would like to direct all non www traffic to my www address.
I have tried to add the code below to my .htaccess file, which I presumed was working however it ...
2
votes
1
answer
468
views
How do I add an expires by type header for site.webmanifest?
I have a site.webmanifest file that was added when I created favicons for a website.
A check on webpagetest.org said:
FAILED (No max-age or expires): https://[my-site]/site.webmanifest
Having done ...
2
votes
1
answer
423
views
Search component pointing to wrong SEF URLs in Joomla 3
My search component is pointing to the wrong URLs. When the user clicks on them, they're redirected to the home page.
For example, the search returns:
http://cursos.portal-gestao.com/9-excel/...
2
votes
1
answer
4k
views
Leverage browser caching
Following htaccess code is available at siteground for Leverage browser caching. My question is that I want to set images expiration time for 1 week and css and scripts expiration time for 2 days. ...
2
votes
4
answers
4k
views
How to remove index.php from url in multilanguage site
I have searching for removing index.php from urls. I did what many web sites say. But I still get 404 error. I think that error would not be showed if I did not use multilanguage web site. I am using ...
2
votes
1
answer
769
views
htaccess mysteries: Can Joomla site run without .htaccess?
I was trying to understand .htaccess file. I learned some directives and added them on my htaccess.txt file but things weren't going as I expected. To test whether I put the contents on right file, I ...
2
votes
1
answer
2k
views
Multilingual site and domains
I have a multilingual joomla site setup and would like to use a different domain for each language.
So instead of "englishsite.com/en/" and "englishsite.com/fr/",
I would get "englishsite.com/" and "...
2
votes
1
answer
72
views
Why is Joomla redirecting from example.com to example.com/example.com?
I was advised to post here from Stack Overflow
We need help. We're running an ad campaign and realized that a lot of paid traffic was landing on a 404 not found page.
The issue is caused by auto-...
2
votes
1
answer
1k
views
Joomla 4 website's backend not working after renaming htaccess.txt to .htaccess
I got a issue after renaming htaccess.txt to .htaccess in the public_html folder of my Joomla 4 website (https://www.freepetsitters.com). I renamed it in order to get rid of "index.php" in ...
2
votes
1
answer
950
views
Making /joomla subdirectory the website root AND forcing HTTPS
Setting up a Joomla site on Apache 2.4 on a Synology Disk Station. Joomla is unavoidably installed in a subdirectory of the web root (/web/joomla) and unfortunately do not have access to the Apache ...
2
votes
1
answer
875
views
Joomla redirect with HTTP Status Code (redirect component vs .htaccess)
First of all, this is not the same question as can be found here: (Redirect URLs using Redirect component or .htaccess).
What I want to know is what HTTP Status Code (for e.g. 301, 302, 303, etc...) ...
2
votes
1
answer
606
views
Random 403 Errors
I have a joomla site installed in a subdomain and have moved it to another folder within the same subdomain. However, I am getting random 403 errors (not able to reproduce yet) and I seem to see it if ...
2
votes
1
answer
358
views
Joomla 2.5 SEF and JRequest
(Migrated this question from Stack Overflow)
I am working on a client's website which is based on the Joomla 2.5 framework. With SEF turned off (the in built Joomla version) the URL is this
http://(...
2
votes
0
answers
80
views
Very slow HTTP response times possibly due to SEF rules in htaccess
Im running Joomla 3.X and can't seem to pinpoint why I'm getting such high HTTP response times.
I think I narrowed it down to the SEF rules in my .htaccess
I ran some tests and thought to post my ...
2
votes
0
answers
156
views
Homepage of multilingual site not working anymore after removing index.php (404); all other sites working
So I removed the "index.php" - part from the URL in Joomla in the following way:
Change the htaccess.txt - file name to .htaccess via FTP
Set the URL-rewrite Option in the Joomla Configuration ...
1
vote
3
answers
8k
views
Rename htaccess on Windows
I'm developing a website using xampp on my Windows computer. But when I try to rename the file htaccess.txt to .htaccess in order to enable rewrite rules in Joomla, I get an error message:
How can I ...
1
vote
2
answers
2k
views
Shows blank page when creating new article or new category
I have a problem in joomla backend. When I try to create click or create anything like new
article or category, it shows blank page and nothing appears, no errors shows. Since I am a
beginner of ...
1
vote
3
answers
5k
views
My site downloads index.php instead of serving it if I use .htaccess
If I use Admin Tools to create a .htaccess file the site downloads the index.php file instead of serving it. What setting causes this, why does it occur, can it be fixed, and what are the ...
1
vote
1
answer
324
views
Joomla security - fingerprinting attacks with htaccess
I've been playing with my htaccess file to better secure Joomla but I'm stuck at this example (reference):
## Referrer filtering for common media files. Replace with your own domain name.
## This ...
1
vote
3
answers
8k
views
Joomla 404 always redirects to homepage
I'm having issues getting the proper 404 page (templates/MY_TEMPLATE/error.php) to work.
I've spent hours reading through and trying every example or fix listed on Stack Exchange and other sites with ...
1
vote
2
answers
4k
views
Can't exclude subfolder from rewrite rules in Joomla
My website is made with Joomla. I've got a subfolder which contains plain html/css pages. I don't want Joomla to rewrite URLs inside this subfolder.
Now, I have the page in this path:
http://www....
1
vote
3
answers
715
views
Multiple Slashes in URL
I'm having a bit of a strange problem on a couple of Joomla sites and I'm not really sure where to start with figuring out what the problem is.
When I crawl the site with Screaming frog, I am getting ...
1
vote
1
answer
198
views
Using SEF URLs breaks all templates
I changed both Search Engine Friendly URLs to Yes and Use URL Rewriting to Yes in Global Configuration and renamed the .htaccess.txt to .htaccess .
But, now none of my templates work anymore.
I have ...
1
vote
4
answers
385
views
Access Errors After Changing Addon Domain Directory Root to Joomla! Folder
First: I would consider myself an advanced beginner in terms of administration. I know enough to be dangerous to myself and my projects :)
I have an addon website hosted at HostGator. The HostGator ...