mod_rewrite

Alles, was den Apache betrifft, kann hier besprochen werden.

mod_rewrite

Postby baldi » 12. January 2015 12:06

Hy Guys,

i want to do following thing:
my url looks like "domain.com/kat.php/kat=2" and i want that it looks like "domain.com/test"
the second url "domain.com/test" shut follow to "domain.com/kat.php/kat=2" is this possible?

nice greeeeez
baldi
 
Posts: 1
Joined: 12. January 2015 12:02
Operating System: Windows/CentOs

Re: mod_rewrite

Postby Nobbie » 12. January 2015 14:35

SImply redirect the URL, put a .htaccess file into domain.com and insert one line:

Redirect /test http://domain.com/kat.php/kat=2
Nobbie
 
Posts: 8762
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests