Questions tagged [.htaccess]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
163 views

too many redirects EE 2.5.4

I have moved the site www.webawards.com.au and followed the information in regards to moving the existing site to a new server. I have a problem with too many 302 redirects and the hosting company ...
1
vote
0answers
110 views

Rewrites for removing index.php stopped working

After moving from one server to another the .htaccess-rewrites for removing the index.php stopped working. Old server: PHP 5.3.27 / Apache 2.4.3 New server: PHP 5.6.6 / Apache 2.4.12 There is an ...
0
votes
2answers
631 views

Remove and Direct all traffic through index.php from .htaccess to web.config in IIS10

Could someone please help me convert the following .htaccess file to web.config? <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # Removes index.php from ExpressionEngine ...
0
votes
1answer
43 views

.htaccess 301 for new structure from /blog/name to /blog/article/name

The title really says it all. I am by no means an .htaccess wizard. I rebuilt the site and have an old URL of: http://domain.com/blog/whatever I need all these to redirect to: http://domain.com/...
0
votes
1answer
62 views

.htaccess not rewriting for missing www

I need all non-www requests to redirect to www. I believe I'm doing this right, but this code is not working: <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine on # If www is ...
0
votes
1answer
60 views

deny access to directory but allow to sub directories, how?

Im using native EE image manipulations to create small images. How ever, EE saves the original files, and everyone can access to those. I need to deny access to these original images but allow access ...
0
votes
1answer
35 views

When using subfolder site is not indexing properly [duplicate]

Now i indexed my site for testing purpose inside a sub folder like www.example.com/test but it is not working properly. But when i change the url like www.example.com/test/index.php it is working. ...
0
votes
2answers
94 views

htaccess/redirection madness

Trying to access a google file on the server which is at http://www.norland.co.uk/googled096ea11cba5b121.html This is an ExpressionEngine build. My htaccess rules as follows: RewriteCond %{...
1
vote
1answer
62 views

How to keep EE from rendering invalid urls as valid pages?

Google's Webmaster Tools tells me I have a bunch of pages without titles. Upon examining the URLs listed, it would appear these are a mix of faulty links, deleted posts, changed titles. Somewhere, ...
1
vote
1answer
474 views

.htaccess remove index.php sort of works, but not the first time after browser cache is cleared

I don't know if this is a new thing or if it's been an issue all along, but the client just noticed and i recreated the issue myself. If I clear my browser cache and then visit my client's site at a ...
0
votes
1answer
2k views

HTACCESS issues with multiple redirects

I'm having a hard time figuring out how to re-direct multiple portions of a site to the https:// version. What I have so far does work, it just randomly throws in an extra '?' sometimes? <...
1
vote
1answer
3k views

Remove question mark in URL with “Force URL query strings” enabled

in one of my sites I had to enable "Force URL query strings" because my hosting provider doesn't have "URL Segment Support" enabled. I don't have the permissions to change Apache configuration file ...
1
vote
0answers
157 views

Focus Lab Config 403 Forbidden Error. Moving site from production to localhost

I'm very new to EE (coming from a Wordpress background). I'm trying to make changes to an existing site without editing the live site. So I'm trying move the live site to my localhost (I'm running ...
0
votes
0answers
431 views

Remove index.php for subdomain

Current page is with subdomain.(bla.examplewebsite.com) I trying to remove the index.php with official document(http://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html) way, but it ...
0
votes
1answer
358 views

Modify htaccess to work in subfolders [duplicate]

I'm trying to setup a multilanguage site using this solution http://eeinsider.com/articles/multi-language-solutions-for-expressionengine I have to modify the .htaccess to remove index.php from URL ...
0
votes
1answer
158 views

remove question mark with .htaccess rewrite module

i want to remove ? from url with .htaccess rewrite module. http://example.com/?/test/downloads in this url i want to remove /? . how to remove this any idea i am using Query string in expression ...
2
votes
1answer
69 views

subdirectory path opening root website why

there are two site on my server 1 on root and other one in a sub folder named /A when i am inputting my sub folder's url its opening root website there is no .htaccess file present . root website ...
1
vote
1answer
480 views

Remove .php extension from index.php. where .htaccess file is to be located?

I have code in .htaccess file RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^.]+)$ $1.php [NC,L] My directory like.. www/careers/index.php And i have putten .htaccess file ...
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 ^...
0
votes
1answer
245 views

Stash static caching URL issue

I am using Stash static caching (and it is AWESOME). I'm using Stash 2.4.5, Mustash 1.0.9, and EE 2.7.2. On my Mustash 'Static cache rewrite rules' page, in the example .htaccess code, it has the ...
0
votes
1answer
566 views

.htaccess RewriteRule not working as desired

1st off I know about the redirect add-ons, but I need to do this in my .htaccess and not load any more on EE. Before I found EE and started making EE sites. I used a free gallery program to create my ...
1
vote
1answer
8k views

Replacing Controller and function name with attribute in Codeigniter?

in htaccess or route.php where from you want you can give answer for this issue. I Need some thing like this.if i have url : http://tageto.pnf-sites.info/developer/headcategory_controller/...
6
votes
2answers
269 views

Exclude ?URL redirect from site 404's

I'm administering EE site with forum. On the forum, there are many redirects in the form of http://domain.com/?URL=http://third-party-site.com/page.html Recently, Google started returning 404 for my ...
2
votes
2answers
124 views

index.php not always removed

I have two weird scenarios concerning index.php in my url. For the most part, it is removed from the url. The two times when index.php reappears in the url is in form return. I'm using Freeform Pro. ...
1
vote
1answer
4k views

“Too Many Redirects” browser error after adding some stuff to .htaccess when trying to view control panel login page

RewriteCond %{HTTP_HOST} !^\.site\.com$ [NC] RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L] I added this to my .htaccess file to remove the trailing slash and it has caused a "Too Many ...
0
votes
2answers
460 views

.htaccess for nexcess shared hosting

I have 2 sites running on different shared hosting servers with nexcess.net both with similar setups (same version of EE 2.6.1 and same add-ons) and both experiencing different issues which I'm ...
2
votes
1answer
1k views

index.php in sub domain not working

I have created a sub domain new.mysite.com. I have a fully functioning EE website on mysite.com and I am a copy to new.mystie.com to work on it. It moved over fine, except that all the links are ...
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 ...
1
vote
1answer
1k views

Adding trailing slashes and redirecting to www in .htaccess

I'm using the following code in my .htaccess in order to redirect to the www version of the website and also to add a trailing slash by default. It all seems to work, but I wondered is this the most ...
1
vote
2answers
73 views

Every URL Displays Homepage

I'm migrating a site from Media Temple (GS) to (DV), but every URL without index.php returns the homepage. URLs with index.php display correctly. FastCGI is disabled, here are the contents of my ....
1
vote
1answer
664 views

301 Redirect URL Appending Query String

From yesterday, I'm trying this 301 url redirect but its not working as expected. Please help me with this. here is the .htaccess file code. Options +FollowSymLinks +SymLinksIfOwnerMatch -MultiViews ...
1
vote
1answer
123 views

Index.php and Strange Redirection

OK, I had a site working and today when I went back to it some strange issues are happening. I'm not sure what I did, if anything. But more importantly, I can't figure out what to do! Originally ...
1
vote
1answer
284 views

Pagination on template that is same as directory name and index.php removal

I have a template that is same that directory name (namely, 'video'). Both template and files in directory are linked thoughout the site, so they cannot be removed. I'm trying to remove index.php ...