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 1099 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Other Programming Languages :

changing page name without loosing PR?

Thread title: changing page name without loosing PR?
Closed Thread    
    Thread tools Search this thread Display Modes  
08-11-2007, 11:34 AM
#1
Hero is offline Hero
Hero's Avatar
Status: Very much the flyest.
Join date: Mar 2006
Location: Belgium
Expertise:
Software:
 
Posts: 1,171
iTrader: 1 / 100%
 

Hero is on a distinguished road

  Old  changing page name without loosing PR?

Hello,

My links page, has PR4. I just noticed this, and i thought it's great to do some link exchange, but i would prefere the page to be /links.html or something instead of ?action=links.
Now i know this isn't hard, but is it also possible to keep the PR the page has?

And how (mod_rewrite right?)?

Thanks!

08-12-2007, 03:36 AM
#2
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

If you are on a server running apache (if you are on linux), mod rewrite is your best option.
put this in your .htaccess file in the same directory as the file we are working with
Code:
RewriteEngine On
RewriteRule ^/links.html$ /index.php?action=links [L]
Im not an expert in mod_rewrite, but that should work

08-12-2007, 04:16 AM
#3
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Code:
<IfModule mod_rewrite.c> 
RewriteEngine on 
RewriteRule ^/(.*).html$ /index.php?action=$1
</IfModule>
That should do

08-23-2007, 04:02 PM
#4
Hero is offline Hero
Hero's Avatar
Status: Very much the flyest.
Join date: Mar 2006
Location: Belgium
Expertise:
Software:
 
Posts: 1,171
iTrader: 1 / 100%
 

Hero is on a distinguished road

  Old

Hey guys,
thanks for the replies, I tried both codes, but none of them work.
mod_rewrite is active, since the site is using it, but nothing happens.
I also tried without the rest of the mod_rewrite code, always 404.

Any more suggestions?

Thanks!

EDIT: this seems to work:
RewriteRule ^links.html/?$ index.php?action=links

Closed Thread    


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