Questions tagged as 'htaccess'

2
answers

Remove .php extension from pages, however ERROR 404 - PAGE NOT FOUND appears

I'm trying to remove the .php extension from my web pages. I created a .htaccess file as below and put it in the root directory DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\...
asked by 23.09.2018 / 07:21
1
answer

How to use friendly URL?

I'm doing my TCC and the theme is SEO, to complete I need to put friendly URL since the current link is like this:    post.php? id = 79 Well, I already looked for the .htaccess and managed to leave the main pages (blog.php, contato.php, i...
asked by 23.09.2018 / 03:39
1
answer

.htaccess wildcard and specific subdomain

I have the following file structure (example): /usuarios /admin .htaccess I successfully managed to set up .htaccess so that when I access the url below, everyone is directed to the users folder, and displays the url as typed, not displayin...
asked by 20.07.2018 / 00:31
1
answer

Dynamic friendly URL .htaccess

I currently have the following rule in .htaccess: RewriteRule ^fale-conosco/?$ view/fale_conosco.php [NC,L] And I'd like you to be able to enter a friendly URL after you contact us /. Example: fale-conosco/ajuda For t...
asked by 15.08.2018 / 21:52
1
answer

Htaccess - Redirect all requests to a single file every time

I'm trying to use a .htaccess file to redirect all requests to a single file, but I'm facing some problems. My .htaccess looks like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ....
asked by 18.08.2018 / 04:18
1
answer

Creating urls htaccess automatic limiting minimum amount of characters

RewriteRule ^(.*)/([0-9]+)$ /nomes.php?nome=$1&matricula=$2 I need to determine that the $ name redirection is at least three characters long. I did something like this: $nome = @$_POST['nome'].@$_GET['nome']; if( strlen( $no...
asked by 11.07.2018 / 00:28
1
answer

htaccess returns $ i

Good evening, I made a htacces code like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] RewriteRule ^app/([0-9]+) app.php?id=$i The first rule is to remove the ".php" from the pages and the s...
asked by 03.07.2018 / 06:31
1
answer

How to load an Error 404 page for the site and another for HTACCES application?

.htacess site # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /in...
asked by 13.05.2018 / 00:54
1
answer

Site redirection error

My site always redirects from www.idealnutri.com/magnesio-dimalato to www.idealnutri.com/magnesio-dimalato/ (WITH BAR IN THE END). Because? How do I know what's causing this redirect? NOTE: I do not have HTACCESS on my site....
asked by 18.04.2018 / 05:40
1
answer

Prohibit from other sites from using my content

Hello, I'm trying to develop an htaccess code that prevents other sites from using my content. I tried this, but without success, if I type in the browser certain file / link it becomes inactive even for me, being that it was to be for another p...
asked by 12.04.2018 / 18:27