Questions tagged [htaccess]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
5
votes
1answer
1k views

Why am I getting ?p=oldpage in a 301 redirect?

Not sure whether this is directly related to Craft but I’ve been using this method for years and it has always worked with other sites. I’m replacing an old site and some pages have moved. I want to ...
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 ...
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 ...
1
vote
1answer
921 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
1answer
678 views

Remove subdirectories from admin URL with .htaccess

I have Craft public files set up within subdirectories of a primary domain’s web root. public_html/ # default web root public_html/example.com/public_html/ # Craft public files here The following ....