Questions tagged as '.htaccess'

1
answer

Apache + Dir Alias + htaccess and virtualhost _default_: 443 (localhost vs IP Public)

I can not enter a directory, which in Apache 2.4 is set as alias, for that vhost , since having a htaccess , which redirects everything to an index.php file, does not take the priority of the alias and passes the path to the index.php. inst...
asked by 29.12.2017 / 22:57
1
answer

Access .htaccess Error 404

Using the Xampp (Apache). If we want to access a page on our web server , which does not exist, then we should return an error of Page not found , and we should redirect it to a page error404 , that we have designed, in my case: error404....
asked by 09.01.2018 / 21:38
2
answers

Problem creating friendly URLs with htaccess and regular expressions

Greetings, I am creating a dynamic web page in which certain information is loaded using a variable $_GET . and the url remain of the type https://www.dominio.com/deals/deals.php?deal_id=483 where the variable deal_id...
asked by 22.12.2017 / 20:16
1
answer

Temporary redirect 302 to new domain with .htaccess

Hi, I'm doing a temporary redirect 302 using .htaccess, my code is # BEGIN test redirect <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.dominio_nuevo.com [R=302,L] </IfM...
asked by 16.01.2018 / 14:36
1
answer

Error 500 Internal server error host google cloud

Hello, I have a problem with my blog, when I open the page with my domain name ( www.aprendiendodeartesdigitales.com ) only the following appears on the screen:    "Internal Server Error   The server encountered an internal error or misconfi...
asked by 24.07.2017 / 19:55
2
answers

PHP / HTACCESS - Reading the URL as a string

I would like to know how I can do that by entering a URL like the following link Read the URL and you can do something specific with the word profile , user-1 , and news , for example, show a news page based on the user.    But wit...
asked by 28.07.2017 / 17:56
1
answer

Allow special characters in htaccess

How can I allow special characters in htaccess? I'm using: RewriteRule ^Juegos/Xbox-One/([0-9]+)/([0-9a-zA-Z_-]+)/ single.php?ID=$1 [L] However, letters like the ñ or accented words make the URL not work. I'm also having a problem with that...
asked by 31.05.2017 / 19:40
1
answer

How to add icons to the JS and CSS files in the urls?

I have seen that some pages have the favicon of the page in the urls, of the JS and CSS files. I would like to know how to achieve it. I know it's a strange or crazy question, or how you want to see it, but I would like to know how to do i...
asked by 10.03.2017 / 05:14
2
answers

. htaccess does not load css or images

My next error is with the htaccess I do not load the css files or anything RewriteEngine On RewriteRule ^blog?$ web.php RewriteRule ^blog/c/([0-9]+) web.php?id=$1'     
asked by 11.08.2016 / 04:07
0
answers

Help hiding extensions with htaccess file

guys I have the following code in my .htaccess file and I want to know who can help me order my code: Options -Indexes RewriteEngine on RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} ErrorDocument 404...
asked by 04.01.2019 / 18:39