Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1148 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Seo

Thread title: Seo
Closed Thread  
Page 2 of 3 < 1 2 3 >
    Thread tools Search this thread Display Modes  
07-01-2007, 10:05 PM
#11
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Are you on a linux server

07-02-2007, 01:15 AM
#12
Seraskier is offline Seraskier
Status: I love this place
Join date: Jan 2007
Location: Charlotte
Expertise:
Software:
 
Posts: 542
iTrader: 0 / 0%
 

Seraskier is an unknown quantity at this point

Send a message via AIM to Seraskier Send a message via MSN to Seraskier

  Old

yeah...

07-02-2007, 03:16 AM
#13
Dark_Prince11 is offline Dark_Prince11
Status: Member
Join date: Apr 2007
Location: Deer Park, NY
Expertise:
Software:
 
Posts: 123
iTrader: 0 / 0%
 

Dark_Prince11 is on a distinguished road

Send a message via AIM to Dark_Prince11 Send a message via MSN to Dark_Prince11

  Old

Originally Posted by Seraskier View Post
I've been looking around...didnt really learn much...

what if i wanted to change...
profile.php?id=2254679
into
profile/2254679
Okay, first step create a file called .htaccess. And then goto Open With > Dreamweaver or whatever editor you use. Than post the following code,

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^profile/(.*)(/)?$ profile.php?id=$1

Now I put the wildchar because I don't know whats the maximum number of integerers you can have or if you can have letters with it. You could of course control it using specific characters and what not.

07-02-2007, 03:26 AM
#14
Metal-CX is offline Metal-CX
Status: Junior Member
Join date: Feb 2006
Location:
Expertise:
Software:
 
Posts: 98
iTrader: 0 / 0%
 

Metal-CX is on a distinguished road

  Old

create one then and upload to the root dir of your website.

do you know how to use regular expressions?

btw what you want would be something like this IIRC

profile/.[0-9] profile.php?id=$1

07-02-2007, 04:49 AM
#15
Seraskier is offline Seraskier
Status: I love this place
Join date: Jan 2007
Location: Charlotte
Expertise:
Software:
 
Posts: 542
iTrader: 0 / 0%
 

Seraskier is an unknown quantity at this point

Send a message via AIM to Seraskier Send a message via MSN to Seraskier

  Old

this is my .htaccess
Code:
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^profile/(.*)/ /profile.php?id=$1
it either gives me a error 404 or just doesnt work....
also this is for users so I cant make one for each user...

07-02-2007, 05:29 AM
#16
Seraskier is offline Seraskier
Status: I love this place
Join date: Jan 2007
Location: Charlotte
Expertise:
Software:
 
Posts: 542
iTrader: 0 / 0%
 

Seraskier is an unknown quantity at this point

Send a message via AIM to Seraskier Send a message via MSN to Seraskier

  Old


http://s199039163.onlinehome.us/profile:1

i made it do that... i personally like that better than i like all the slashes
....collegehumor
would google be able to return pages like that?

07-04-2007, 02:52 PM
#17
Dark_Prince11 is offline Dark_Prince11
Status: Member
Join date: Apr 2007
Location: Deer Park, NY
Expertise:
Software:
 
Posts: 123
iTrader: 0 / 0%
 

Dark_Prince11 is on a distinguished road

Send a message via AIM to Dark_Prince11 Send a message via MSN to Dark_Prince11

  Old

Originally Posted by Seraskier View Post
this is my .htaccess
Code:
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^profile/(.*)/ /profile.php?id=$1
it either gives me a error 404 or just doesnt work....
also this is for users so I cant make one for each user...
You don't have to make one for each user. The wildcharacter will take any combination of text/letters. And display that requested profile. Also, your code should be more like this
Code:
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^profile/(.*)(/)?$ profile.php?id=$1
That should work. If it doesn't, than you don't have mod_rewrite enabled in your Apache.

07-06-2007, 07:14 PM
#18
Seraskier is offline Seraskier
Status: I love this place
Join date: Jan 2007
Location: Charlotte
Expertise:
Software:
 
Posts: 542
iTrader: 0 / 0%
 

Seraskier is an unknown quantity at this point

Send a message via AIM to Seraskier Send a message via MSN to Seraskier

  Old

well when i did:
Code:
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^profile/(.*)(/)?$ profile.php?id=$1
It doesnt work, just gives me a error 401. I know mod_rewrite works because I wrote one to do: profile:1

07-06-2007, 07:24 PM
#19
Dark_Prince11 is offline Dark_Prince11
Status: Member
Join date: Apr 2007
Location: Deer Park, NY
Expertise:
Software:
 
Posts: 123
iTrader: 0 / 0%
 

Dark_Prince11 is on a distinguished road

Send a message via AIM to Dark_Prince11 Send a message via MSN to Dark_Prince11

  Old

Does going to that URL give you an error or does going to any page give you an error? I can't seem to figure out whats wrong with that code. I've used that same one on a project before..

Try removing the question mark and the parentheses including the slash before it...

07-06-2007, 07:39 PM
#20
Seraskier is offline Seraskier
Status: I love this place
Join date: Jan 2007
Location: Charlotte
Expertise:
Software:
 
Posts: 542
iTrader: 0 / 0%
 

Seraskier is an unknown quantity at this point

Send a message via AIM to Seraskier Send a message via MSN to Seraskier

  Old

Originally Posted by Dark_Prince11 View Post
Does going to that URL give you an error or does going to any page give you an error? I can't seem to figure out whats wrong with that code. I've used that same one on a project before..

Try removing the question mark and the parentheses including the slash before it...
using that link.. "/profile/1/" gives me the error.

I have removed the stuff, I still get the same errors, profile:1 is the only i have got to work

Closed Thread  
Page 2 of 3 < 1 2 3 >


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed