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 > Programming
Reload this Page Please help on mod-rewriting

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-05-2005, 11:40 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Feb 2004
Posts: 2,656
suthra is just really nicesuthra is just really nicesuthra is just really nicesuthra is just really nice
 



Please help on mod-rewriting


Hi guyz, how do i mod rewrite the entire site:
http://rate-my-pic.ratemypic.in/index.php

so that the members profile will automatically look like

http://ratemypic.in/suthra
????: NamePros.com http://www.namepros.com/programming/104424-please-help-on-mod-rewriting.html

instead of

http://rate-my-pic.ratemypic.in/ind...username=suthra

and also the other links in the site.

Kindly help

Any help is grately appreciated.

I have a 301 redirect from my domain ratemypic.in to the subdomain rate-my-pic.ratemypic.in


Regards.,
Sarathy.s
__________________
A single smile can be a solution to several problems.:)
www.adult.ec
is for Sale! Why not make an Offer?
suthra is offline  
Old 07-06-2005, 12:35 AM   #2 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



Im not to familiar with mod_rewrite, but this helped me when I needed to use it:

http://www.webmaster-toolkit.com/mod...enerator.shtml
__________________
Joe
gamex is offline  
Old 07-11-2005, 04:10 AM   #3 (permalink)
NamePros Member
Join Date: Oct 2003
Posts: 126
i386 is an unknown quantity at this point
 



RewriteEngine On
RewriteRule ^([a-zA-Z]+)$ index.php?username=$1 [L]
i386 is offline  
Old 07-11-2005, 05:14 AM   #4 (permalink)
Pro Coder & Designer
 
aween's Avatar
Join Date: Apr 2005
Location: Netherlands
Posts: 967
aween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really nice
 



+ the server must have mod_rewrite installed .

check by: create a new php file with the content:

<?php
phpinfo();
?>

visit the page.
and search for mod_rewrite if you cant find it, you cant use it
__________________
aween web development
aween is offline  
Old 07-11-2005, 10:01 PM THREAD STARTER               #5 (permalink)
Senior Member
Join Date: Feb 2004
Posts: 2,656
suthra is just really nicesuthra is just really nicesuthra is just really nicesuthra is just really nice
 



thankx for the replies pals.,

Mines is Modrewrite enabled.

The URL structure comes like this:

rate-my-pic.ratemypic.in/index.php?cmd=20&username=suthra

rate-my-pic is a subdomain of ratemypic.in and when anyone types ratemypic.in , it automatically redirects to the subdomain which has seperate FTP access.

Hi EKukiela101, i tried that code, thanks for that code., It does not work.
Should i put that code in .htaccess of ratemypic.in (or) in the .htacess of rate-my-pic.ratemypic.in
__________________
A single smile can be a solution to several problems.:)
www.adult.ec
is for Sale! Why not make an Offer?
suthra is offline  
Old 07-11-2005, 10:55 PM   #6 (permalink)
Account Closed
 
axilant's Avatar
Join Date: May 2004
Location: /etc/passwd
Posts: 2,178
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
 

Member of the Month
July 2005

http://tutorialempire.com/index.php?view:67
axilant is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!! How do you unistall a mod using easymod? Joseph Programming 3 05-06-2005 10:26 AM
phpbb mod instlation help needed ill pay 20$ a mod jamieneil Website Development 6 05-02-2005 08:17 AM
How to MOD PhpBB on PhpNuke? drmaximus Website Development 8 10-12-2004 03:10 PM
Mod for invision board - to have points zoya19 Website Development 3 11-27-2003 08:43 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:41 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