NameSilo

Mod_rewrite guru around?

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
pretty easy to do...

Code:
RewriteEngine On
RewriteRule ^(.*).htm /index.php?page=$1
 
0
Close
Thanks but that didn't work.
 
0
Close
It should work, im testing it right now on my local pc... and it works.
 
1
Close
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
Close
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
Close
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
Close
Yes. Thanks to axilant I figured the err in my coding. :)
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back