Welcome Guest, Not a member yet? Register   Sign In
config .htacces to obtain url as fotolog, twiterr, etc...
#1

[eluser]Unknown[/eluser]
Hi. I'm doing a solution...
i need that my users enter on the site with like url:

www.myweb.com/user_name


with this .htaccess script, i get hide only the index.php

Code:
# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex  index.php/usuario/

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php $1 [L,QSA]
</IfModule>

how can do it? actually, i haven't idea about .htaccess

i found the following script, but the site isn't made on CI

Quote:RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule ^(.+)$ ver.php?ver=$1

where ver.php is renamed by other string

www.theweb.com/index.php?ver=user_name
to
www.theweb.com/user_name

Thanks for your help..!!




Theme © iAndrew 2016 - Forum software by © MyBB