Questions tagged as 'url-rewrite'

2
answers

Put bar at the end of the url with .htaccess

I need to add a forward slash (/) to the end of the url using .htaccess. My current .htaccess looks like this: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^dominio.com.br [NC] RewriteRule...
asked by 19.02.2016 / 15:16
1
answer

Nginx with PATH_INFO and url rewritten (friendly)

I created a .htaccess in the /var/www/project/ folder: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(statics/([a-zA-Z0-...
asked by 04.05.2015 / 01:20
1
answer

Error in the end bar with mod_rewrite and mod_jk

I have the following structure on my server. Apache HTTPD (port 80) Tomcat (port 8080) I used mod_jk to make the connection between apache and tomcat and this is working perfectly. I created a subdomain to point to an applicat...
asked by 29.01.2014 / 19:28
1
answer

Wordpress with friendly URLs - Apache error - How to solve?

I'm having problems with Wordpress with friendly URLs. It simply does not work even using the .htaccess file suggested by the Wordpress support site. cat .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase...
asked by 14.06.2014 / 19:03
1
answer

UrlRewrite for photo name - Web

Today have the urls of the images of my site as: /images/tb/1280077_894mvzfxoojqb.jpg I would like to be able to rename this so that the generated HTML is Apartamento_em_SaoPaulo.jpg or something similar. Possible options....
asked by 20.08.2015 / 22:18
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
1
answer

Friendly URL getting value for PHP

My question is in this URL : site.com/embed.php?id=a48sa4d2a3s4d65a1s5d6a1sd56 I get this value for $_GET['id'] . How can I turn into a beautiful and organized URL ? Example: site.com/embed/a48sa4d2a3s4d65a1s5d6a1sd...
asked by 10.12.2018 / 02:34
1
answer

Problems with Rewrite PHP / Apache

2 days ago I changed from Linux distro and I am now using Elementary OS. I installed Apache, Mysql and PHP manually, in the same way that I installed in the previous distro, but I am having problems with Rewrite (friendly urls). In the previous...
asked by 26.02.2018 / 19:36
1
answer

.htaccess detect string after slash

I'm not getting htaccess to detect string or characters after / for example. I have this: xpto.xpto / xx / And I wanted it when this happened xpto.xpto / xx / cualquecoisa .htaccess internally executes a php code I tried th...
asked by 15.03.2016 / 17:55
2
answers

.htaccess wildcard subdomain pointing to directory + hash

Pretty simple to doubt. Redirect by .htaccess containing a subdomain wildcard and hash. From: http://carros.domain.com/visualizar#123 http://casas.domain.com/visualizar#345 http://aps.domain.com/visualizar#567 To: http://domain.com/car...
asked by 11.12.2015 / 07:31