how would i go about changing my urls that look like this;
http://localhost/profile/index.php?user=adam
to something like this;
http://localhost/profile/adam
Any help would be appreciated. =]
how would i go about changing my urls that look like this;
http://localhost/profile/index.php?user=adam
to something like this;
http://localhost/profile/adam
Any help would be appreciated. =]
Hi,
Put this code in your .htaccess file and it should solve the purpose: -
RewriteCond %{HTTP_HOST} ^localhost/profile/index.php?users=$ [NC]
RewriteRule ^(.*)$ http://localhost/profile/$1 [R=301,L]
Hope this works for you!
Cheers,
~Maneet Puri
try:Code:RewriteEngine on RewriteRule ^profile/([a-z]+)$ profile/index.php?user=$1 [L]
[Jasme Library (Javascript Motion Effects)] My Site
/\/\@§†ê® §©®¡þ† /\/\@|{ê®
There are 10 kinds of people in the world, those that understand binary and those that don't.
Both of those codes showed no response ='/
But im using my localhost as a tester...
would that make a difference?
You'll get a big 'ol error if you don't have mod_rewrite installed.
Try placing a .htaccess file in /profile with the following contents:
Code:RewriteEngine On RewriteRule ^([a-z]+)$ index.php?user=$1 RewriteBase /profile/
could it be the .htaccess file that is causing this?
Bookmarks