NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Website Development
Reload this Page mod rewrite

Website Development Development concepts, scripts, sponsors and affiliate programs.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-22-2005, 08:40 AM THREAD STARTER               #1 (permalink)
Senior Member
 
dotcommakers's Avatar
Join Date: Oct 2003
Location: world wide web
Posts: 2,056
dotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to behold
 




mod rewrite


hi

does anyone know how to mod rewrite..?

i would like to make my website page in following format


from 'http://domain.com/forums/index.php"

to 'http://domain.com/index"

thanks
dotcommakers is offline  
Old 01-22-2005, 07:02 PM   #2 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
Just the one page? Or do you want rewrite a whole series of pages? Instead of using a filename without an extension like /index, I would recommend adding an extension, like .html to it so its /index.html

The one page is pretty simple. Just create a .htaccess file in your root directory with the following:

Code:
RewriteEngine On

RewriteRule ^index.html forums/index.php

<Files *.html> 
ForceType application/x-httpd-php 
</Files>
<Files *.htm> 
ForceType application/x-httpd-php 
</Files>
Keep in mind though if you're using ModRewrite to direct to a file in a different directory, your HTML may have to be modified if it uses relative paths for the images. Else it will be looking for your images in /images/ instead of /forums/images/ . Same for links. Maybe if you let me know what your intended purpose is I could better assist with some rewrite advice.
__________________
@DomainBuyer facebook
RJ is offline  
Old 01-22-2005, 11:05 PM THREAD STARTER               #3 (permalink)
Senior Member
 
dotcommakers's Avatar
Join Date: Oct 2003
Location: world wide web
Posts: 2,056
dotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to behold
 




thanks -RJ- for replay

yeah no problem i will use "http://domain.com/forums/" use same url no need to redirect it to "http://domain.com" but how can i make them int to .html

my intention was to just make it search engine friendly

my site will use ip forums
dotcommakers is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:13 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger