![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I need to use mod_rewrite to change my links from http://www.aophotography.com/photo_g...lbum=11&pos=15 to something a little more Google friendly. Does a step by step guide exist anywhere on how to use mod_rewrite for a case like this? I found http://httpd.apache.org/docs/mod/mod_rewrite.html but it does seems to tell you how the thing works rather than just how to use it. |
#3
| |||
| |||
|
|
Hi I need to use mod_rewrite to change my links from http://www.aophotography.com/photo_g...lbum=11&pos=15 to something a little more Google friendly. Does a step by step guide exist anywhere on how to use mod_rewrite for a case like this? |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
First figure out what you want the virtual URI (the one people see) to look like. How about this: http://www.aophotography.com/photo_g...11_pos_15.html To map this add two lines to your .htaccess file in photo_gallery/ : RewriteEngine on RewriteRule ^album_(.*)_pos_(.*)\.html /photo_gallery/displayimage.php?album=$1&pos=$2 [T=application/x-httpd-php,L] Presumably you have no other real pages in photo_gallery that start with "album" - then you should be fine. |
#6
| |||
| |||
|
|
First figure out what you want the virtual URI (the one people see) to look like. How about this: http://www.aophotography.com/photo_g...11_pos_15.html To map this add two lines to your .htaccess file in photo_gallery/ : RewriteEngine on RewriteRule ^album_(.*)_pos_(.*)\.html /photo_gallery/displayimage.php?album=$1&pos=$2 [T=application/x-httpd-php,L] |
|
After a little reading i realized that the php photo gallery is still going to show dynamic links from it's pages. I some how need a system that goes through a page before it is displayed and changes the links to static ones. It is beginning to sound very complicated! Any help much appreciated. |
#7
| |||
| |||
|
|
After a little reading i realized that the php photo gallery is still going to show dynamic links from it's pages. I some how need a system that goes through a page before it is displayed and changes the links to static ones. It is beginning to sound very complicated! Any help much appreciated. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Could some one please tell me why this does not work? http://www.aophotography.com/photo_g...11_pos_15.html I followed Mr. no_one's instructions exactly. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |