₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,927 members, 8,424,202 topics. Date: Wednesday, 10 June 2026 at 08:26 PM

Toggle theme

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

Nairaland ForumScience/TechnologyWebmastersApache Quiz: How Do You Setup A Redirection. . . (972 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 BugsDhtml 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?234

Googling with the right keywords and phrasesWebmasters. Please Critique My Site.How To Make Money From Blogging