|
-
Jun 16th, 2008, 09:22 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Apache Re-Write Asolute Paths
Ok,
I've just applied apache re-write to a website.
Old url %url%/categories?cId=x
New /categories/x/product-Name/
Ok thast great but the image/JS/css paths of the files were before just relitive paths so
css/style.css
js/a.js
etc etc
What is the quickest way to make these paths absolute? So that they get picked up again.
Thanks
-
Jun 16th, 2008, 09:48 AM
#2
Re: Apache Re-Write Asolute Paths
You could make them relative to the root....
/css/style.css
/js/a.js
-tg
-
Jun 16th, 2008, 11:24 AM
#3
Hyperactive Member
Re: Apache Re-Write Asolute Paths
Or you can rewrite to http://www.domain.com/css/style.css if that's what you were asking originally.
» Twitter: @rudi_visser : Website: www.rudiv.se «
If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.
-
Jun 16th, 2008, 02:42 PM
#4
Re: Apache Re-Write Asolute Paths
Usually using an absolute path is not a good thing to do. Have you tried tgs code yet?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 16th, 2008, 03:14 PM
#5
Thread Starter
PowerPoster
Re: Apache Re-Write Asolute Paths
I was being very very stupid, talk about a lapse in concentration.
Sorry to hassle you guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|