Web Design and Development Forums

mod Rewrite, relative links and Document Root

This is a discussion on "mod Rewrite, relative links and Document Root" within the Apache and IIS section. This forum, and the thread "mod Rewrite, relative links and Document Root are both part of the Hosting Related category.


Go Back   Webforumz.com > Hosting Related > Apache and IIS

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 18th, 2008, 11:04   #1 (permalink)
Junior Member
 
Join Date: Oct 2007
Location: UK
Posts: 38
mod Rewrite, relative links and Document Root

In my .htaccess file I have set a custom error page for certain errors using ErrorDocument. But the path to the custom error page is relative to the Document Root, which is different between my local testing environment and my webhost. Is there any way I can set the Document Root using .htaccess?

Also, I am using htaccess to rewrite URLs, but this messes up my relative links to js, css and image files. I don't really want to use absolute URLs as this will mean they will all need changing when I upload the files to my webhost. I was thinking that if I could set the Document Root for the site then I could rewrite these URLs as absolute URLs. Does anyone have any suggestions for solving this problem?
djeyewater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 30th, 2008, 14:27   #2 (permalink)
Up'n'Coming Member
 
Join Date: Nov 2006
Location: Paris
Posts: 51
Re: mod Rewrite, relative links and Document Root

Have you contacted your tech staff?
tankara is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rewrite Server Root per Subfolder aso186 Apache and IIS 0 Nov 11th, 2007 20:10
document.getElementById and document.getElementByName is not working in FF dhineraj JavaScript Forum 3 Jul 26th, 2007 20:23
Can I put style sheet in the root folder that targets a specific html page badger CSS Forum 3 Jul 14th, 2007 17:35
phpMyAdmin - how do I give it my root password? Colm Osiris MySQL 1 Nov 7th, 2006 15:10
Setting the web root carriker Hosting & Domains 5 Mar 14th, 2006 18:47



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 06:58.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59