Most voted "mod-rewrite" questions
This tag should be used when the question refers to some resource, information or problem related to the Apache URL Rewriting Module. Mod_rewrite is a URL rewriting module for the Apache web server. It is commonly used in URL’s called "Friendly URL’s", but also provides power and flexibility to perform various request management tasks in addition to simple replacements.
Learn more…59 questions
Sort by count of
-
0
votes1
answer53
viewsIn regular expressions in . htaccess, what does this rule mean?
What this rule is doing exactly? RewriteCond %{HTTP_HOST} ^(www\.)?website\.com\.br$ RewriteRule . - [E=REWRITEBASE:/]
-
0
votes1
answer239
views.Htaccess redirects even without anything configured
Guys, I recently asked you a question right here at Stack (Doubt in . htacess) about a little htaccess to solve a problem I’m having in the company. After a good study and begin to understand +/-…
-
0
votes0
answers53
viewsError requesting Cakephp internal pages?
I got a problem with mine CakePHP, I’m completely new to this framework and my erro is as follows: 2017-05-01 10:09:45 Error: [MissingControllerException] Controller class PagesController could not…
-
0
votes1
answer333
viewsHTTP Access Control (CORS) for multiple domains
How to free HTTP Access Control (CORS) of images using Xmlhttprequest for all domains below on . htaccess and not using global permission with "*": Access-Control-Allow-Origin:…
-
0
votes2
answers65
viewsHow to recover everything after the "?" in Rewriterule?
I have the following rule that was created by another programmer and that is running in some processes: RewriteRule ^chk-error/(.*) chk_err.php?error=$1 [L] She recovers everything that comes after…
-
0
votes1
answer200
viewshtaccess - Rewrite URL with . htaccess inside a subdirectory
I am trying to rewrite a URL where the . htaccess file is inside a subdirectory. Current URL: localhost/Development/Projects/redirect/index.php URL I’d like to use: localhost/redirect/index.php My…
-
-1
votes1
answer178
viewsHow to restrict GET requests from other sites?
I’m trying to stop other sites from copying my download links, but they’re unconventional (they don’t have format at the end), so I can’t block through Apache mod_rewrite. So I decided to block GET…
-
-1
votes1
answer54
views.htcaccess 301 redirect does not work
The redirection of https://www.meusite.com for https://meusite.com doesn’t work. And as a result I get the site in duplicate, one page I’m logged in and the other not. <IfModule mod_rewrite.c>…
-
-1
votes1
answer679
views.htaccess returns error 500 instead of 404
My file. htaccess seems to be ok, but if we try to access a page that doesn’t exist, instead of getting the 404 error reply, I get the 500 error reply. This is the current code: RewriteEngine On #…