URLs can be made much more pleasant for users, so and for search engines. So why not take advantage.
Htaccess (Check with your host, whether it is enabled ..)
start will create in the root folder of the script file .htaccess (usually Windows NT 'swears' so it is best to use the editor for example Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

)
you can assign a convenience to home page
Code:####### Индексная страница (Index page) ########
DirectoryIndex shared.php
disable error php
Code:####### Отключить ошибки php (Disable error php) #############
php_flag display_errors off
php_flag display_startup_errors off
designate an error page/ create file 403.html for error page
Code:###### Страницы ошибок (403) #########
ErrorDocument 403 http://www.site.ru/403.html
turn on mod rewrite
Code:####### ЧПУ - mod rewrite (enable mod) #########
RewriteEngine On
##### статичные страницы (static page) ########
RewriteRule ^user/$ /shared.php [L]
RewriteRule ^register/$ /register.php [L]
##### динамические страницы (dinamic page) ########
RewriteRule ^logout/$ /?logout=1 [L]
RewriteRule ^user/([^/]*)/$ /shared.php?user=$1 [L]
RewriteRule ^user/([^/]*)/([^/]*)/([^/]*)$ /shared.php?expand=$3&folderid=$2&user=$1 [L]
respectively swap links
here for example
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

changes to
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

&
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

changes to
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

&
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

changes to
Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

All these links should be changed in the script file, all of this rather cumbersome
so if you still on my advice use notepad + + then use the menu :
Search--> Find in files
[settings specify what to look for and what to replace]
prohibit watch directories and subdirectories
Code:##### запрещаем смотреть каталоги #######
Options All -Indexes
acquaintance recommended for protection
how it helps - I do not know / hope Multimedia File Viewing and Clickable Links are available for Registered Members only!! You need to

or

comment on ..
Code:########### hack s #########
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
If you have any suggestions or you see an error, please write about it.
Thank you for your attention