Questions tagged as 'htaccess'

1
answer

How to hide the word "blog" from my site wordpress

Whenever I post a post appears link , I would like to change the URL to link Follow my htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f Rewrite...
asked by 20.03.2017 / 13:50
1
answer

Remove .php extension except from a file

Hello I have my system in php, I added the .htaccess file RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)\.php RewriteRule...
asked by 26.01.2017 / 22:02
1
answer

Error installing script on localhost

I'm trying to install a script on host location, but the following error appears:    Internal Server Error       The server encountered an internal error or misconfiguration and was   unable to complete your request.       Please contact th...
asked by 26.08.2016 / 02:54
1
answer

Force https using .htaccess in only certain domain and subdomain [duplicate]

I would like to know how to force HTTPS using .htaccess in just a certain domain / subdomain. The code I use is forcing https across all subdomains ... and one of my subdomains does not have SSL, so I hope it does not work on https....
asked by 07.08.2016 / 18:41
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
1
answer

Link directing wrongly with htacess

I'm using the following structure in addresses / links to my friend's url on fixed pages: RewriteRule ^teste(.*)$ teste.php So, my address looks like this: www.site.com/teste It happens that if the user enters the word test next t...
asked by 22.12.2015 / 13:41
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
1
answer

How do I get information from a function and distribute it in a view?

I have done a function that receives data from the database according to parameters passed by $_GET[] ... How can I use this information in another part of my system? function db_tratcontent(){ $slug = friendly_url(($_GET['slug_tra...
asked by 15.11.2015 / 23:24
3
answers

URL Problem with Bar /

In Laravel it is very common to use friendly URLs and also very easy to use. The system is ready for this. However, I have a problem that I did not care about until now. And now I want to know why. I have a simple route for all my pages:...
asked by 11.11.2015 / 19:21
1
answer

How to use friendly urls in a php system? [duplicate]

I'm working on a website, the first site I do without Wordpress and would like your help to implement friendly urls. I do not have much knowledge on friendly urls and .htaccess but I'm trying to learn. My initial .htacces...
asked by 10.11.2015 / 16:30