NameSilo

Mod_rewrite

NamecheapNamecheap
Watch

Jeanco

RyanPrice.ca - DeveloperEstablished Member
Impact
4
Okay I've spent some time trying to look into this and I just can't figure it out, so I'm going to tell you what I'm trying to do and hope that someone can help me out.

I'm trying to use the mod_rewrite command so that the following things happen:

- when www.epasture.com/content.php?content=laughables.php&ID=8 gets requested the browser will show something like www.epasture.com/laughables8.html

- similarily, when www.epasture.com/laughables8.html is requested the browser bar stays the same but the URL in the first example is delivered to the user

The twist: I have different sections so I need this to work for all of the pages. What I need is if someone typed in:

1) epasture.com/laughables.html it takes them to epasture.com/content.php?content=laughables.php

2) epasture.com/laughables8.html it takes them to epasture.com/content.php?content=laughables.php&ID=8

3) epasture.com/tutorials.html it takes them to epasture.com/content.php?content=tutorials.php

4) epasture.com/tutorials2.html it takes them to epasture.com/content.php?content=tutorials.php&ID=2

I hope this explained in enough detail what I'm after. Can anyone help?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
u want to redirect someone to another page if they type in the file name?
 
0
•••
no its not a redirect, its something called mod_rewrite (apache).
 
0
•••
Problem solved.
 
0
•••
Originally posted by Jeanco
Problem solved.

What was the solution?
 
0
•••
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back