473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

mode rewrite with relative path

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
1 2328
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Doug | last post by:
If I were to write an include with a relative path like include("../conf/config.php"); What is the use? As far as I understand it, the path is relative to the first script that is called by...
5
by: jason | last post by:
Can anyone help me find a solution to quickly working out relative paths to a folder in the root of my server... Although it easy when you go - say - two levels down: .../includes it...
6
by: openleren | last post by:
Hi all, how can I use a relative path in my web.config file for an Access db?: Instead of using <configuration> <appSettings> <add key="conAccess" value="microsoft.jet.oledb.4.0;data...
4
by: Win, Pats | last post by:
I have a snippet of HTML that I inject into a number of pages throughout my Web site at runtime. My problem is that I'm not getting the image to appear in all documents into which this snippet is...
0
by: Paul Hatcher | last post by:
I'm using a url rewriting mechanism to make my site's urls more search-engine/user-friendly, so we have http://www.mysite.com/links/1023.apx which is actually internally mapped to...
9
by: Paul Hatcher | last post by:
Sorry to post this again - I didn't use my MSDN alias previously... I'm using a url rewriting mechanism to make my site's urls more search-engine/user-friendly, so we have...
18
by: Nak | last post by:
Hi there, Does anyone know what path the AssemblyKeyFile attribute is relative to? For example I currently have mine set to <Assembly: AssemblyKeyFile("..\NicksKey.snk")> Sometimes this...
8
by: JJ | last post by:
I'm confused about paths. I have a functionn that uses the mappath method, which I think requires a virtual path (is that the same as a relative path?). But this doesn't always work as the...
15
by: Lars Eighner | last post by:
Aside from the deaths of a few extra electrons to spell out the whole root relative path, is there any down side? It seems to me that theoretically it shouldn't make any difference, and it would...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.