How to make my website URLs like this? https://stackoverflow.com/users/5066707/hand-on-cloud
Asked
Active
Viewed 207 times
2
-
*I've searched for* -> Search for: `.htaccess` – Rizier123 Jun 30 '15 at 19:08
-
1Rizier, this has to be made with .htaccess? I didn't know, thanks! I will search... :D – Jun 30 '15 at 19:09
-
`$url = $_SERVER['REQUEST_URI']`; – marc_s Jun 30 '15 at 19:12
-
SLY, yes, can be possibly this, but... I forgoted say that the the URL will return 404, there's a solution? – Jun 30 '15 at 19:13
-
2see this http://stackoverflow.com/questions/20563772/reference-mod-rewrite-url-rewriting-and-pretty-links-explained – Alex Andrei Jun 30 '15 at 19:17
-
Alex, well, thanks! This I was searching! I will read it, case I got it, I'm grateful! – Jun 30 '15 at 19:24
-
Thanks! :D Case no, http://code.tutsplus.com/tutorials/using-htaccess-files-for-pretty-urls--net-6049... I found this! – Jun 30 '15 at 20:33
1 Answers
0
Add .htacces file and try something like this.
Options FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^user/Handoncloud$ profile?pr=Handoncloud [L]
Read abaut mod rewrite an .htacces.

Kamil Bogumił
- 121
- 9