Questions tagged as 'htaccess'

1
answer

Redirect a domain to subfolder without changing the URL, but not allowing otherwise?

I have the following problem, I have an application with the following structure: app - Folder to store project files as controllers and models. public_html - Stores public documents on the web, such as index, uploads, css. routes.p...
asked by 22.11.2015 / 02:32
1
answer

Merge 2 mod_rewrite conditions in .htaccess

About .htaccess and mod_rewrite not understanding anything at all! The situation is as follows, I have 2 projects in different domains: This first project uses the condition below that always directs the browser to the HTTPS protocol by...
asked by 29.10.2015 / 18:02
1
answer

HTACCESS - Directory exclusion condition

Good evening! I have the following scenario in an application: I'm redirecting all requests to my index.php and handling URL's through the application: RewriteCond %{REQUEST_URI} !admin RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|...
asked by 21.12.2015 / 02:30
1
answer

Hide domain directory using htaccess or router in cakephp

I'm having a hard time creating a configuration in .htaccess to hide a folder from my site. My domain has the following structure: www.site.com.br/cake, where are the files and folders related to the project. I want to hide the / cake directo...
asked by 03.07.2015 / 15:26
1
answer

friendly url with several paramters in htaccess

I see that some sites like olx, buscape among others, when sent several parameters in the url are separated these parameters by / or -. For example: link Do I need help removing the? and & and sort by /. Example: site.com.br/imo...
asked by 25.09.2015 / 22:13
1
answer

Release subdirectory through .htaccess [duplicate]

How do I release a specific sub directory (and all of its files) via .htaccess? As I use "friendly url" and through .htaccess I block everything that is not convenient, I would like to know how to "free" access to a specific folder a...
asked by 22.05.2015 / 04:11
2
answers

Redirect or deny direct access to public folder

I'm using htaccess to access the css , js , images folders that are in /public directly: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(css|js|images)/(.*)$ public/$1/$...
asked by 18.05.2015 / 04:45
2
answers

Problem in regular expression in .htaccess

I have the following rules in my file .htaccess : RewriteRule ^first-login/([a-zA-Z0-9]+)$ ./first-login.php?userKey=$1&step=1 RewriteRule ^first-login/([a-zA-Z0-9]+)?([0-9]+)$ ./first-login.php?userKey=$1&step=2 The first one...
asked by 21.04.2015 / 00:10
1
answer

Edit url friendly user profile

Good I have the friendly url routes in the htacess file I am viewing the users by url so by the profile file link But I wanted to now edit the profile of this user that is another file edit_profile.php but I wanted the url to look lik...
asked by 14.02.2015 / 17:57
1
answer

Redirect .com.br domain to .com

I have two domains: the main one is the .com and the secondary is the .com.br I need to make it every time you go to www.domain.com, it redirects to www.domain.com, even when you have a subfolder, for example: www.domain.com/test redirect to...
asked by 13.01.2015 / 18:08