₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,347,346 members, 8,527,606 topics. Date: Monday, 30 November 2026 at 11:12 PM

Toggle theme

Apache Quiz: How Do You Setup A Redirection. . . - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Apache Quiz: How Do You Setup A Redirection. . . (985 Views)

1 Reply

Apache Quiz: How Do You Setup A Redirection. . . by Nobody: 2:05am On Mar 12, 2009
Let us assume that, you want to setup all them pretty url stuffs like this.
Let us say the domain is like nairaland. And you know everyone has their profile.

So, if you visit nairaland.com/dhtml - > should load my profile. . .so stepwise, how will you
go about that on say an apache server, please be explicit. . .you can post codes if necessary.

1 rule to answering the question : - creating of folders for everybody is not acceptable.
1 hint to answering the question : - htaccess is allowed if necessary.
Re: Apache Quiz: How Do You Setup A Redirection. . . by nitation(m): 8:10am On Mar 12, 2009
Mod_rewrite URL should solve that problem. I have used it in the past.

- nitation
Re: Apache Quiz: How Do You Setup A Redirection. . . by Nobody: 6:47pm On Mar 12, 2009
Right on nitation. . .
The htaccess file looks somewhat like this

.htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^([_0-9a-z-]+)$ redirection.php?purl=$1 [L,QSA]


As for the redirection.php, you will have to write that yourself. . .
1 Reply

Webmasters Quiz :: How To Fix Apache Redirection Bugs • Dhtml Quiz: How Will You Detect If A Browser Support Javascript From Php Code? • Next Quiz: How Do You Detect With Php If Javascript Has Been Turned Off? • 2 • 3 • 4

Advertise Your Site For Free-- Real • Calculating A Website Value • Easymanual.biz- One Secret Place People Make Money