Forum Moderators: coopster & phranque

Message Too Old, No Replies

mod_rewrite help needed

it has been a while - but i am back....

         

iggy99

2:39 am on Apr 14, 2002 (gmt 0)

10+ Year Member



we are developing a php driven site and hope to make it as se friendly as possible

one idea is to make a "public" DIR of all of our *.php menue option categories and assigning a "home" page to each - primarily to help gain favorable search engine returns: www.example.com/shop/

my goal is to have simple - easy to follow category home page url's -

i have tried the simplest approach - to display the "?" question mark containing link as a php server parsed page:

please visit http://www.example.com/cut_flowers/

this is the source of the index.php file in the /cut_flowers/ dir:

<?php
include ('http://www.example1.com/example/?page=shop/m_cutflowers');
?>

notice all images are broken - the actual file url i wish to use is on another web site - same server: [example1.com...]

how would i go about displaying the "include" in the index.php as outlined above and have it function properly without doing it by usnig a frameset or copying all of the image dirs to the 2nd web site -?

i suppose some folks would call this "cloaking" - i am not sure what to call it -

in essence i need to make a "home page" for each menue category in the "home" site and use it on another url -

plan B would be to come up with some sort of rewrite rule in an htaccess file and simply take out the offending characters --

we are on a cobalt raq4 - dedicated server with mod_rewrite already working in other sites on the server -

we are developing this with a tweeked app

any suggestions would be really appreciated -

[edited by: jatar_k at 5:24 pm (utc) on Sep. 8, 2006]

glengara

8:04 am on Apr 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not my area, but [webmasterworld.com...] may help.

Damian

8:44 am on Apr 14, 2002 (gmt 0)

10+ Year Member



The problem with the images not showing could be solved by using absolute paths for your image paths on the webshop101 site.

iggy99

6:22 pm on Apr 14, 2002 (gmt 0)

10+ Year Member



absolute pathis will not work - as this is a database driven site calling from the root/ outside of the "public" area and writhing the urls - if i use absolute paths - every time i add or change a product i would have to go in and hard code all of the links - not practical ---

i will look at the link above ---

any other ideas???

many thanks