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
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-...
5
votes
1answer
936 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 ...
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 ...
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
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 ...
1
vote
1answer
134 views

SSL on multi-language site

I'm trying to get the checkout template working with SSL. When I set the Require SSL parameter to YES in CP / Store / General. loading the checkout template (https://www.mydomain.com/nl/store) fails ...
1
vote
1answer
1k views

htaccess: need help hiding index.php and doing a redirect without conflict?

I need to redirect a page on a client site to an outside URL. I have been using the following redirect, which works - sort of: redirect 301 /durhamchapelhill http://gds.chapelhilluumc.org The ...
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 ...
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-...
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 ...
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 ...
0
votes
2answers
275 views

When submitting comment form Fatal error: Class 'Api' not found

My problem: I could submit a comment, but the data wouldn´t be saved into the database. But no error message was shown. After submisseion EE would just take the comment, throw it away and then would ...
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:...
1
vote
3answers
651 views

Edit .htaccess File Within ExpressionEngine

I have a client that wants to edit their .htaccess file within ExpressionEngine's CP as opposed to editing the file locally and FTP'ing it back to the server. Is it possible to customize EE to allow ...
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 ...
0
votes
1answer
2k views

URL errors of URI submitted has disallowed characters

In google webmaster tools i seem to be getting of 503 pages and other errors The website is old. Mainly from old url's that don't exist anymore. For example page.com/meubels?page=75&%24Version=1&...
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
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 ...
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 ...
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....
1
vote
2answers
32 views

Moved /images, errors in log from those images, solution?

I moved the /images folder on a site, which contained uploaded images, to a new containing folder. I was able to update all the images used by the site itself to use the new path, but there's still a ...
1
vote
1answer
62 views

How to keep admins at /admin.php and out of /system?

When using admin.php to point to the /system folder, sometimes admins will end up redirected from urls with /admin.php to urls with /system. This presents problems with various add-ons, and generally ...
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 ...
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 ...
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....
1
vote
1answer
92 views

structure module and classic subdomains

We have a site originally written in ee 1.5.2 using the classic subdomain method. Can I take "classic" subdomain folders and move them into subfolders in Structure for organizational purposes and ...
0
votes
2answers
842 views

How can I allow directory access to public

I have a website with expressionengine. website struture is /system -- Codeigniter ---- system -- expressionengine /test I have a folder test, I would like to make it accessible to public. I am ...
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 ...
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. ...
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]...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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....
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.
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 ...

1 2
3