Questions tagged [htaccess]

A .htaccess file is a directory-level configuration file used to override a subset of the web server's global configuration.

Filter by
Sorted by
Tagged with
8
votes
1answer
10k views

301 Redirects Appending Query String?

First time this has happend to me and I can't figure out how to fix my 301 redirects. The redirect is appending the rule to the end of destination/new url: Redirect 301 /products.htm http//www.domain....
7
votes
5answers
1k views

Removing part of EE urls with .htaccess or via other methods?

I've had a similar question up on Stack Overflow, but now that we've got this shiny new site, I figured I might as well bring it here. With EE 2, is it possible to remove anything other than index....
7
votes
6answers
3k views

Removing index.php rewrite not working

I use the official EE rewrite rule to remove index.php. This has always worked for me just fine... until now. I am using a hosting company that I've not used before and it is acting funny. The ...
7
votes
3answers
272 views

Redirecting from old Wordpress URLs — getting query strings

I'm migrating the content of a Wordpress blog to EE. The old blog has this URL structure: /news/2012/08/08/2013-schedule/ And I need to redirect to this: /news/post/2013-schedule/ At the moment I ...
6
votes
1answer
323 views

Index.php Removal Not Working

I have a site causing me no end of trouble with index.php removal. It works on one host (EngineHosting) but not on another (Liquid Web). I have other sites on the same server at Liquid Web using the ...
6
votes
1answer
90 views

Unable to remove index.php under VM environment

I'm having issues removing index.php from the URLs even though mod_rewrite is enabled. My htaccess code: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]...
6
votes
1answer
145 views

Removing index.php with the official method when running old-style multiple sites?

I am currently using a non-official .htaccess rewrite to deal with index.php and a few other bits and pieces. Since it looks like I am going to try and take care of the other bits and pieces with ...
5
votes
3answers
1k views

How to add .html to URL's

I am building a reasonable size replacement site in EE and will be migrating content from an existing static-built site. In order to maintain as many inbound and internal links as possible, what is ...
5
votes
1answer
160 views

Can't see root level non-ee php files

Weird one - haven't seen this before. Just launched a newly upgraded from ee1 to ee2 site at www.bankofmarin.com. Everything works fine. This is a Structure site and I have strict URLs on to enforce ...
5
votes
3answers
18k views

Force SSL on some URLs but non-SSL on others with .htaccess

I'd like to redirect requests for certain urls to secure https with .htaccess rules. I found this excellent tutorial: https://exp-resso.com/blog/post/2011/08/securing-your-expressionengine-website-...
5
votes
2answers
16k views

How to remove trailing slash from URLs?

I would like to remove duplicate URLs by removing the trailing slash from URLs. If someone enters a URL like http://example.com/something/ it should 301 redirect to http://example.com/something. ...
5
votes
1answer
938 views

SSL certificate on https://secure.domainname.com

my problem: If I attempt to access a https template through expression engine, I get a blank screen: https://secure.domainname.com/anyTemplateGroup/anyTemplate Solved by host (finally found this on ...
4
votes
2answers
2k views

500 internal server error using Master Config

I've been using Focus Lab's Master Config for most of this year and have never run into this issue before. So here's what's happening, going to the domain (example: mysite.com/index.php or mysite....
4
votes
2answers
254 views

Zoo Flexible Admin + MSM Needs Hard Refresh - how to avoid?

This is based on this Support Thread: http://devot-ee.com/add-ons/support/zoo-flexible-admin/viewthread/4202 In short: the menu in MSM doesn't change without HARD refreshes every time. It looks like ...
4
votes
3answers
3k views

“no input file specified” - .htaccess

I'm in the process of migrating my sites to Media Temple. I need to change the htaccess file and add a '?' to successfully remove the 'index.php' from the URL. Without it I get "No input file ...
4
votes
2answers
492 views

Store isn't adding products to the cart

I'm building a VERY simple store setup to demonstrate its capabilities to a client. I setup a quick and dirty EE site, added Structure, Wygwam and Store. EE and all the add-ons are current versions. I ...
3
votes
7answers
29k views

How do I remove index.php from my URLs?

How can I remove index.php from my URLs? Please provide rationale for why the specific method should be used.
3
votes
3answers
1k views

ExpressionEngine and CORS?

I need to enable cross-domain AJAX requests on my site, while limiting the cross-domain access to a particular template. This template is in its own template group, so the requests from the script ...
3
votes
2answers
3k views

index.php removal in .htaccess doesn't work when on https

I have the following htaccess setup: <IfModule mod_rewrite.c> RewriteEngine On # force https for all URLs in /admin.php RewriteCond %{HTTPS} =off RewriteRule ^...
3
votes
3answers
3k views

404 error on all templates but homepage after removing index.php

I am trying to remove the index.php from my URL, and have gone through the necessary steps, and used the code below in my .htaccess file. When I navigate to the homepage, it works, but clicking on any ...
3
votes
2answers
580 views

Strict URLs / Removing one template group name

I would like to have 'strict URLs' enabled, but see I have to include the template group name in the URL for the pages to link correctly (else the 404 shows). All groups are fine but one. I have a ...
3
votes
2answers
517 views

htaccess, https, MSM, and Expresso Store

I'm running EE multi-site manager (MSM). My default site's domain (say, www.default.com) is where the /themes folder is housed. So, for my second site (say, www.site-two.com), all of the EE and third-...
3
votes
2answers
612 views

Querystrings on 'home' url go to 404 page

I've got a problem with an old site (running EE2.4) which is issuing a 404 if the URL contains a querystring. This is happening on the homepage only. i.e. http://www.example.com/?foo=bar causes a ...
3
votes
1answer
4k views

Adding a .htaccess redirect to https that plays nicely with existing EE .htaccess rules

I've got an extranet (mywebsite.com/extranet) and would like to make sure that just this section is always under https, even if the user types the URL without https in it. Likewise (as a bonus, if ...
3
votes
2answers
140 views

SSL Redirect (no idea where it's coming from)

I recently had to do some emergency-work on my client's live server, and wanted to sync those changes back into my repository and staging environment. Now that I've synced them back (copied new files ...
3
votes
3answers
1k views

Removing index.php but leaving subdirectory

We're working on a site that has Wordpress installed as the main CMS. EE is installed in subdirectory, and I am wanting to remove index.php. Everything I have tried removes both index.php and the ...
2
votes
2answers
420 views

How to redirect EE site to www. using htaccess & keep the index.php file removed

We are running an EE site which is successfully stripping the /index.php from the URL using the following rewrite rule: RewriteCond $1 !^(docs|index.php|sitemap.php) [NC] RewriteRule ^(.*)$ /index....
2
votes
3answers
513 views

ExpressionEngine over SSL - HTACCESS ISSUE

I have a problem with my EE installation. When I try to browse any page (other than the homepage) over SSL i get a 404 error. The whole site works fine over HTTP. Its only when accessing via HTTPS ...
2
votes
2answers
371 views

How to protect a digital directory but allow downloads?

First time setting up a digital purchases online and would like some pointers/tips on how to protect the directory where all the digital items are stored so someone can't access the file directly like:...
2
votes
1answer
10k views

url rewrite / removing index.php on IIS 7

Does anyone have experience doing this on a windows server, running IIS7? I've got access to the IIS manager, and the URL Rewrite module, but how to setup the rewrite rules, and how should the ...
2
votes
2answers
3k views

Trying to redirect a page to HTTPS using .htaccess, getting “too many redirects” error

Ugh, seems like I'm having a lot of htaccess issues lately. Recently moved a client site to new hosting from the cient's internal server. Their IT had setup SSL and updated the .htaccess to redirect ...
2
votes
1answer
5k views

Removing index.php AND the subdirectory folder name

I'm developing a site at the moment and noticed when I uploaded it to my staging server, all my links show correctly in the address bar, but show the index template. My folder structure is as follows ...
2
votes
2answers
298 views

Clean 301 redirects using an .htaccess that also removes index.php

I've got a somewhat standard .htaccess for removing index.php from my EE1 URLs: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/$ [NC] RewriteCond %{QUERY_STRING} ^(utm_source=.*) ...
2
votes
3answers
1k views

How do you remove template group from URL?

I've scouring through StackExchange looking for an answer for the last few days with no luck. These are the suggestions that I've seen without any real detail or resources: 1.) Somehow use the ...
2
votes
2answers
635 views

Forcing SSL on /admin.php only

Trying to force SSL on the admin area only (/admin.php) but running into some issues. I've installed the http support add-on (http://devot-ee.com/add-ons/https-support) and the SSL certificate is up ...
2
votes
2answers
323 views

Can't add items to a cart with EE 2.7 - Expresso Store

So, I wasn't sure if this was just a version problem or something (using EE 2.7 and Store 1.6.4 - the latest). When I try to add items to my cart, they aren't successfully added and the network ...
2
votes
1answer
2k views

Set up of conditional redirect in htaccess

I've asked a question over at Stackoverflow thinking that it wasn't really EE related https://stackoverflow.com/questions/18229829/set-up-of-conditional-redirect-in-htaccess But now I'm not so sure ...
2
votes
2answers
2k views

.htaccess redirect loop error

htaccess : <IfModule mod_rewrite.c> RewriteEngine On # Removes index.php from ExpressionEngine URLs RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f ...
2
votes
2answers
2k views

How to enforce a language segment via htaccess in your uri?

we have a multilingual website and everything is based on the language segment in the uri. eg. /en/home /fr/home /nl/home Now I want my 404 page for a uri without a language segment to redirect to ...
2
votes
1answer
1k views

How do I setup Automatic 301 Redirects on url_title change

EE gives clients great control over the url_title of the entry. This is great for publishing new entries, and necessary for editing entries in case of mistakes or any other "good" reason to change the ...
2
votes
1answer
921 views

htaccess rule for url with dot

A development installation has been set up for me that has cloned an existing site. However, the .htaccess file no longer works to remove index.php. Could this be because there is a dot in the URL? ...
2
votes
1answer
305 views

Remove 'home' folder from home page url

I have a url like this www.example.com/home/ and I cannot get rid of the home folder from the URL. The best I can do results in which causes the page to crash. I've been working with the htaccess ...
2
votes
1answer
259 views

Remove segment and segment parts out of url

Alright I seem to hit rock bottom, and can't figure this out. I've googled and read several solutions here, and can't seem to implement them in my situation. This is probably an .htaccess solution, ...
2
votes
1answer
336 views

Redirect/prevent webmaster tools crawl errors using htacces?

Through Google webmaster tools i noticed many crawl errors. However none of the url's exists anymore but are still linked somewhere in other pages. If i surf to such url i get "Invalid GET Data" An ...
2
votes
2answers
5k views

Remove index.php from URLs on WAMP

I am trying to remove index.php from my URLs on my local WAMP server using the supported .htaccess code: <IfModule mod_rewrite.c> RewriteEngine On # Removes index.php from ...
1
vote
3answers
1k views

templates not being served, could it be .htaccess?

I've tried the tips here: 404 on Every Template and TPL group and here: 404 error on all templates but homepage after removing index.php I can access the index by using the default url (on my ...
1
vote
1answer
622 views

NSM htaccess generator error EE2.8.1

I'm running into what looks like an incompatibility for NSM htaccess generator with ee2.8.1 Trying to save entries will result in the following error: *Fatal error: Call to undefined function ...
1
vote
2answers
111 views

Are .htaccess files required for EE install?

I'm discussing with my sysadmin about whether to allow .htaccess files. I noticed all over the EE file tree there are .htaccess files to prohibit access to files, such as to system/user/config/config....
1
vote
1answer
181 views

Renaming System Folder - Creates reload loop

I wanted to rename my system folder. But when I do so and point my browser to the new cp url I create a infinite reload loop and chrome goes nuts. Renamed system folder Check Renamed system url in ...
1
vote
3answers
96 views

Howto trim incoming URL's

So I've recently moved a blog from Wordpress to ExpressionEngine. Everything transferred over great (thanks to DataGrab!!). Now the one problem I'm having is in my attempt to redirect traffic from ...