[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 07-05-2005, 10:40 PM   #1 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 2,761
187.95 NP$ (Donate)

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

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-05-2005, 11:35 PM   #2 (permalink)
NamePros Regular
 
gamex's Avatar
 
Join Date: Feb 2004
Location: Student @ UConn
Posts: 408
73.95 NP$ (Donate)

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
CarrotCash.com
gamex is offline  
Old 07-11-2005, 03:10 AM   #3 (permalink)
NamePros Member
 
Join Date: Oct 2003
Posts: 126
251.90 NP$ (Donate)

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, 04:14 AM   #4 (permalink)
Pro Coder & Designer
 
xlusive's Avatar
 
Join Date: Apr 2005
Location: Netherlands
Posts: 964
101.50 NP$ (Donate)

xlusive is just really nicexlusive is just really nicexlusive is just really nicexlusive is just really nicexlusive 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
__________________
Online Dragonball Game
xlusive is offline  
Old 07-11-2005, 09:01 PM   #5 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 2,761
187.95 NP$ (Donate)

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, 09:55 PM   #6 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

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


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:45 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85