People who code: we want your input. Take the Survey

Questions tagged [htaccess]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
346 views

control panel login redirects back to login

First, I just took over administration of our Craft site from a previous employee, and the original site was set up by a contractor, so I'm still trying to figure things out. Yesterday it was ...
2
votes
1answer
5k views

htaccess www to non-www with subdomain

Our client has (sadly) presented a new site URL as www.foo.bar.com instead of foo.bar.com. I need to use .htaccess to remove the www. The site works correctly if www is not prepended to the URL. This ...
3
votes
3answers
1k views

redirect index.php in urls on Craft site to NEVER show index.php

We’ve recently had some issues with a staging site being down and it turned out the reason for this was: In the words of Brad at Pixel and Tonic, the redirect is "intercepting the update request for ...
1
vote
2answers
371 views

How can I use images from my live Craft Site when developing locally

I'd like to sync the database of a live site to my local site for development, but don't want to download all the images and files. Is there an .htaccess that could look for the files locally, and on ...
2
votes
2answers
3k views

Removing index.php from URL even after .htaccess updates?

I am a little afraid to post this, but I'm running into an issue and haven't found a solution yet. I've been able to successfully remove the "index.php" from all my URLs, however I'm still finding ...
0
votes
1answer
225 views

Front end profile does not save data - form action

I've been having trouble getting a front-end profile template to save any data. It was quite complex so I've gone back to a base install of Craft with no custom fields for a User. Using the example ...
5
votes
2answers
1k views

Using SSL for entire website on Arcustech server

I want to use SSL (https) for my entire website which is hosted on Arcustech. I came across two instructions, one on Craft's site which discusses forcing SSL on the CP and the other is from Arcustech'...
3
votes
2answers
2k views

How do I install Craft in shared hosting that doesn't allow index.php in a sub-folder

I’ve got a small, low traffic site that I’ve rewritten with Craft and a Bootstrap responsive grid, mainly as a learning exercise. The original site has just a dozen static pages, and is hosted with ...
2
votes
1answer
744 views

Restrict control panel by ip address?

Has anyone ever limited access to Craft's back-end via ip address? What paths should I limit if I'm wanting to ensure only certain ip addresses can post updates? Thanks!
1
vote
1answer
925 views

Return to specific locale based on cookie?

If we are storing a cookie of a locale the user choose, is there a way to detect that cookie in htaccess so the next time they visit the base url of the site it will take them to the same locale?
1
vote
2answers
976 views

403 when editing the Homepage

When I edit the homepage in the cp I get a error 403. But only on the homepage. Very weird. The Error is: You don't have permission to access /public/admin/entries/homepage/2-homepage on this ...
3
votes
2answers
1k views

Multi locale, multi-domain Live Preview failing

I have a multi-locale site set up with the different locales in different domains phoseon.craft.dev - English site phoseon.it.craft.dev - Italian site etc. I am having problems getting Live Preview ...
2
votes
1answer
108 views

Have Craft deliver single page despite having a directory of the same name in the public folder?

I just switched my company's website to Craft, and I have a lot of already existing static webpages that I would rather not remake as templates and define routes for. I have a single page made in ...
3
votes
1answer
3k views

htaccess www to non-www redirect (and config.php)

I need to set up a redirect from the www version of my site to the non-www version for SEO. I found a solution that would work here if it weren't for the fact that it breaks the index.php redirect ...
2
votes
2answers
3k views

How can I redirect HTTP to HTTPS with a local self assigned SSL certificate in my .htaccess?

I'm having trouble redirecting HTTP to HTTPS with a self assigned SSL certificate generated by MAMP PRO using the following code in my .htaccess: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule ...
2
votes
1answer
2k views

URL rewrites not working return Apache 404's

Content is accessible via example.com/index.php?p=page-name but not via example.com/index.php/page-name or example.com/page-name. The .htaccess and 'omitScriptNameInUrls' => true are both in place ...
10
votes
5answers
7k views

How do I force SSL on Craft?

I've installed a ssl cert on a site and it's working. Now I want to redirect visitors coming in on http over to https I've put this code and only this code in the htaccess file, but it's causing a ...
1
vote
3answers
554 views

redirect on a Structure

Client has created /exhibitors but wishes it to point to /exhibitors/partners Can that be done using routes or should we be looking at htaccess rules?
2
votes
1answer
419 views

Using Routes to load Controller

I love routes, but they appear limited to loading a specific template. What about loading a plugin/controller based on the route instead? Anyway to do this in craft or am I limited to .htaccess?
0
votes
1answer
401 views

Getting Wordpress 404 when accessing /craft/admin

My current site is with Wordpress in the folder /blog. My new Craft install is in a sibling folder /craft. When i try to load brianfeeney.us/craft/admin, i get the wordpress 404. Must be an .htaccess ...
0
votes
1answer
203 views

getUrl using my original develpment server domain

I have the following code and after moving site to a live server, the img src is using the old domain, however, the anchor links have correct domain name. Any idea what the issue is? ...
5
votes
1answer
466 views

What's the most efficient way to handle a redirect of the home page?

I dont't currently need a home page on the personal site I'm working on but I want to be able to keep the option open in the future. I currently have {% redirect 'portfolio' %} as the only code on ...

1
2