Unstoppable Domains

Mod_rewrite guru around?

Spacemail by SpaceshipSpacemail by Spaceship
Watch

eSology

VIP Member
Impact
4
I have an index.php in my root directory that pulls content from sub-folder. The URLs end up looking like this: http://www.domain.com/?page=some-page-name where some-page-name is the name of the sub-folder. I want to use mod_rewrite in an .htaccess file to rewrite so the URLs look like this: http://www.domain.com/some-page-name.htm

Anyone have an idea? I have read and reread some many articles trying to figure this out.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
pretty easy to do...

Code:
RewriteEngine On
RewriteRule ^(.*).htm /index.php?page=$1
 
0
•••
Thanks but that didn't work.
 
0
•••
It should work, im testing it right now on my local pc... and it works.
 
1
•••
Give me a PM. You will need to edit PHP. You can pay me a few $$ and I can do it for you if you wish.

iNod.
 
0
•••
He didnt change the urls in his navigation, the code i gave him worked actually, contacted me through Yahoo and we worked it out.
 
0
•••
axilant said:
He didnt change the urls in his navigation, the code i gave him worked actually, contacted me through Yahoo and we worked it out.
Yah that is what I was going to say. :P
Nice job axilant.. You beat me too him :)

iNod.
 
0
•••
Yes. Thanks to axilant I figured the err in my coding. :)
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back