-2

Hello all i want to make, that user goes to directory:

www.myweb.com/invites/User

It would work as

www.myweb.com/invites/index.php?u=User

I tried something, but doesn't work.

  • did you try something already? let us know – Oleg Dubas Jan 19 '15 at 22:52
  • Options +FollowSymlinks -MultiViews RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^www.lrgp.lt [NC] RewriteRule ^(.*)$ http://lrgp.lt/$1 [L,R=301] RewriteRule ^(Invites)/([^.]*) $1/index.php?u=$2 [L,NC] – user3849197 Jan 19 '15 at 22:54

1 Answers1

0

In the folder invites, create a .htaccess file or use apache rewrite: http://httpd.apache.org/docs/current/mod/mod_rewrite.html

The rule is :

RewriteEngine On
RewriteRule ^(\w+)$ index.php?u=$1
harrrrrrry
  • 13,643
  • 2
  • 23
  • 28