Questions tagged as 'mod-rewrite'

1
answer

AndroPHP htaccess mod_rewrite

I have installed AndroPHP , but my .htaccess is not working because apache's mod_rewrite is disabled, How do I enable mod_rewrite in AndroPHP?     
asked by 05.04.2016 / 15:23
2
answers

How to have multiple domains using the same shared hosting?

I have a shared hosting account, and I need to add one more domain to it. The only way to do this where I'm hosting my site is through domain mapping , where I can have multiple domains pointing to the same site unless I open another account an...
asked by 16.03.2016 / 18:47
1
answer

htaccess does not work for wp super cache plugin

I installed the wp super cache plugin for wordpress on the server and it works fine. But I can not figure out why my .htaccess rules do not work for the homepage. I make rewrite of the requests for the subdomain www to a folder with a install...
asked by 20.01.2016 / 14:58
0
answers

Redirect site with .htacess

I need to use friendly urls and am trying to make an adjustment with .htacess I have a url: http://www.site.com.br/default.asp?id=meuid&acao=minhaacao&hint=minhahint I need it to look like this: http://www.site.com.br/meuid?aca...
asked by 01.05.2015 / 18:00
1
answer

redirect with mod_rewrite not working in wamp

Mod_rewrite is already enabled as we can see in www.joocebox.com/?phpinfo=1 I also made the change in the file httpd.conf as below: DocumentRoot "c:/wamp/www/" <Directory /> Order Deny,Allow Deny from none Allow f...
asked by 20.04.2015 / 20:54
0
answers

How can I change base rewrite using .htaccess, from my root directory to a folder?

My problem here is that I have a folder called "project" on my server, for a CMS that I use. However, when I click on a link that is in the file for example about.html, it loads a file out of the folder on the main root page, my RewriteBase sect...
asked by 16.02.2015 / 21:02
1
answer

RewriteRule does not work with a specific word

It just does not work for "event", but if I change to "evenTo" it works, eg: Does not work RewriteRule ^evento/([a-z,0-9,A-Z,_-]+)/([0-9]+)?$ evento.php?log=$1&id=$2 It works RewriteRule ^evenTo/([a-z,0-9,A-Z,_-]+)/([0-9]+)?$ event...
asked by 22.12.2014 / 18:54
1
answer

How to recover everything after the "?" in RewriteRule?

I have the following rule that was created by another programmer and that is working in some processes: RewriteRule ^chk-error/(.*) chk_err.php?error=$1 [L] It retrieves everything that comes after chk-error/ and puts it inside er...
asked by 08.06.2017 / 14:39
1
answer

How to map all requests to a single file?

I need to map all requests arriving at the server as follows: exemplo.com/joao => exemplo.com/index.pl?u=joao exemplo.com/joao/ => exemplo.com/index.pl?u=joao My /var/www/.htaccess file is so far: RewriteEngine On Rewrit...
asked by 02.06.2015 / 19:45
1
answer

How to restrict GET requests from other sites?

I'm trying to prevent other sites from copying my download links, but they're not conventional (they are not formatted at the end), so I can not block through Apache's mod_rewrite. So I decided to block GET requests from other sites, but the...
asked by 19.01.2018 / 04:08