By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,660 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

mode rewrite with relative path

P: n/a
hi
i was trying to implement mode rewrite option in a blog site.

i used the lines for listing the posts by its topic category as

#List by Category
RewriteRule ^Topics/([a-z0-9-]+)$ index.php?cat=$1 [L]
#With page navigation option
RewriteRule ^Topics/([a-z0-9-]+)/([0-9]*)$ index.php?cat=$1&start=$2
[L]

so by the first rule it will list all topics when we calls
blog.com/Topics/computer

when pagnavigation comes the url will be
blog.com/Topics/computer/2 - here 2 is second page..

and am almost succeed too

but the problem si when i am going for the page navigation button, am
loosing the relative paths which i inserted for CSS file, and all
other images...

i tempororly solved dat my giving the full path/root path for all the
relative path places in my script...

please help me to find out the solution for solving the same thru mode
rewrite method itself..
ie i may not be able to edit my relative paths included in my script
for various file inclusion..

in which way i need to move?
Please help
Regards
Anees

Aug 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Anees wrote:
hi
i was trying to implement mode rewrite option in a blog site.

i used the lines for listing the posts by its topic category as

#List by Category
RewriteRule ^Topics/([a-z0-9-]+)$ index.php?cat=$1 [L]
#With page navigation option
RewriteRule ^Topics/([a-z0-9-]+)/([0-9]*)$ index.php?cat=$1&start=$2
[L]

so by the first rule it will list all topics when we calls
blog.com/Topics/computer

when pagnavigation comes the url will be
blog.com/Topics/computer/2 - here 2 is second page..

and am almost succeed too

but the problem si when i am going for the page navigation button, am
loosing the relative paths which i inserted for CSS file, and all
other images...
This isn't a PHP problem.
i tempororly solved dat my giving the full path/root path for all the
relative path places in my script...
That's one way.
please help me to find out the solution for solving the same thru mode
rewrite method itself..
ie i may not be able to edit my relative paths included in my script
for various file inclusion..

in which way i need to move?
Please help
Regards
Anees
alt.html and/or alt.apache.configuration. Nothing in your post points
to a PHP problem.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.