Questions tagged [.htaccess-configuration]

.htaccess is a configuration file for use on web servers running the Apache Web Server software.

Filter by
Sorted by
Tagged with
10
votes
5answers
7k 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
3answers
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
2answers
4k 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
4answers
15k 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
3answers
4k 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
3answers
3k 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
2answers
434 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
6answers
16k 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
3answers
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
1answer
460 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
1answer
623 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
2answers
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
2answers
176 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
2answers
459 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
1answer
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
2answers
859 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
2answers
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
1answer
365 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
1answer
486 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
1answer
104 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
1answer
383 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-...
3
votes
1answer
1k 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 ...
2
votes
3answers
476 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
2answers
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
2answers
83 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
3answers
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
3answers
424 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
1answer
390 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
1answer
3k 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
4answers
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
1answer
588 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
1answer
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
1answer
146 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
1answer
701 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
1answer
477 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
1answer
334 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://(...
1
vote
3answers
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
2answers
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
3answers
3k 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
1answer
313 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
3answers
7k 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
2answers
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
2answers
424 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
4answers
355 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 ...
1
vote
1answer
1k views

How to use images from the domain images folder for all subdomains? [closed]

I have a website with a lot of images and many of them are going to be used by two subdomains. I wanted to avoid uploading the same images twice, so I thought maybe to use the images from the domain....
1
vote
1answer
5k views

.htaccess and localhost re-direct issue

I'm quite possibly doing something very silly here however after hours of looking I though I'd ask here as no doubt somebody will spot it! Local dev environment Win7/XAMPP I have a number of local ...
1
vote
1answer
143 views

Rewriting .htaccess into apache config

I have got myself a vserver. I just thought off rewriting the context of the .htaccess (RewriteRules etc.) into my /etc/apache2/sites-availabe/domain.conf . Does this work? Or does the .htaccess ...
1
vote
2answers
289 views

Activating sef plugin throws a 404 error

A joomla website is throwing a 404 error, when I try to access it root page /index.php, but when I deactivate the joomla built-in sef plugin, the website is accessed normally (code 200). I have tried ...
1
vote
2answers
423 views

Redirect problem

Over the last couple of years I have taken over a website made up of several parts, ie there were some traditional html pages, a php “wiki” installation and a similar php “knowledgeable” installation. ...
1
vote
1answer
3k views

Joomla htaccess file

I have some old links (old platform) and I want to redirect them to the new ones. I have both old and new links but I can figure it how to modify the .htaccess file. Everything I try causes a 500 ...