Jump to content

HTML echo

Recommended Posts


Tenho este simples código. HTML


  $url = $_GET['url'];

  echo $url;


e tenho uma .htaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

Porque é que se colocar aparece print 'coisas' na paǵina, se no link escrever index já me aparece o seguinte erro "Notice: Undefined index: url in /var/www/html/cenas/index.php on line 3"

está a adiconar o .php

"If It Ain't Broke, Break it and build something Cooler!" Unknown

Share this post

Link to post
Share on other sites


<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]


developer @ filipealves.net

filipealvesbcl [a] gmail.com


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.