#apache
01 January 2008
Total 11 pages. You are browsing page 1/11.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Tue Jan 01 00:00:04 2008
00:23 <****> Know off a way to easely know the exact configuration for a given directory?
00:23 <****> anyone got an ipod and knows what to do when the dumb device wont boot anymore for absolutely no apparent reasons no matter how long you try to reset it and when nothing is detected when its plugged on the computer
00:24 <****> sell it on ebay
00:32 <****> and ask apache questions
00:35 <****> go get 'im gryzor! rawr!
00:36 <****> hehe
00:41 <****> would this be the place to ask a question about rewriting urls via .htaccess?
00:43 <****> you could try...
00:49 <****> rofl, nobody else is saying anything so I guess i will
00:50 <****> want to rewrite http://www.mysite.com/forums* to http://oldsite.mysite.com/forums*
00:50 <****> redirect
00:50 <****> redirect is http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect or http://httpd.apache.org/docs/mod/mod_alias.html#redirect or see 'Redirect Context'
00:50 <****> or
00:50 <****> redirectmatch
00:50 <****> redirectmatch is http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch
00:50 <****> abusing rewrite for this is really not the way
00:51 <****> perhaps i should explain - it _may_ make more sense
00:51 * megaspaz has his doubts on that
00:51 <****> not as given, no - but go ahead
00:51 <****> had vbulletin as forum software ofr years. Just installed SMF. Want my main site to serve SMF and still have access to the old content
00:51 * adaptr pets megaspaz - quiet now
00:51 <****> at oldsite.mysite.com
00:52 <****> there are quite a few google references to links back to my vbulletin posts
00:52 <****> and so i want to use mod_rewrite to rewrite any incoming requests to the now moved forums so that it'll still deliver that content when somebody clicks on the link at google
00:52 <****> that's unfortunate, but as they refer to a physical site, there's not much you can do about it
00:53 <****> well the physical site is till up
00:53 <****> since your new site will be *unreachable*
00:53 <****> and /forums on the new site is unused
00:53 <****> obviously
00:53 <****> ah
00:54 <****> why are you doing this in htaccess ?
00:54 <****> are you suggesting I do it in httpd.conf? It's a website on a shared server
00:54 <****> I don't have access to httpd.conf
00:54 <****> yes, I am, since that is New Information
00:54 <****> and New Information is bad
00:55 <****> new information? I dont understand
00:55 <****> since you mention this JUST NOW, it is presumably not of paramount importance
00:55 <****> ergo I ignore it and advise you to use the config
00:56 <****> what part should I have mentioned earlier? the part about not having access to httpd.conf ?
00:56 <****> certainly, that is the most vital piece of information you could ever have to share that I could not guess or deduce for myself
00:56 <****> as rewriting works DIFFERENT inside htaccess
00:57 <****> ahh ok, I did not know this
00:57 <****> for one, you may not reference or match the parent path
00:57 <****> you knokw what they say about the word 'assume'
00:57 <****> because it is matched by definition
00:57 <****> what were you ass-u-me-ing ?
00:57 <****> what do you want to do?
00:58 <****> i want http://www.mysite.com/forums* to be rewritten to http://oldsite.mysite.com/forums*
00:58 <****> i was trying this:
00:58 <****> RedirectMatch 301 /forums(.*) http://oldsite.mysite.com/forums$1
00:58 <****> but that didn't appear to work
00:58 <****> mtindor: a simple ^(.*)$ http://oldsite.mysite/com/forums$1 suffices
00:58 <****> since when is a redirect equal to a rewrite ?
00:59 <****> adaptr: No idea. I'm not a coder. I'm just going by what i saw on a website
00:59 <****> I most certainly am not a coder - I am an apache user
00:59 <****> s/user/abuser/
00:59 <****> :P
01:00 <****> and even I can figure out that when the documentation for mod_rewrite states that YOU MAY NOT MATCH THE PARENT PATH WHEN USING HTACCESS, then you should probably not do that
01:00 <****> and i hat ppl who make the httpd not accessible
01:00 <****> +.conf
01:00 <****> so.. you hate 99% of all web hosters ? :)
01:00 <****> yes
01:00 <****> fairy nuff
01:00 <****> where am I trying to match the parent path?
01:00 <****> how else would you find out the configuration?
01:01 <****> mtindor: /forums(.*) sure looks like you are
01:01 <****> mtindor: if you use a htaccess inside the forums directory (and nothing else makes sense), then you obviously don't match that because YOU ARE ALREADY THERE
01:02 <****> so you start with the current directory, wihich is empty
01:02 <****> hence ^(.*)$
01:02 <****> public_html/.htaccess is where I am modifying things
01:02 <****> AKA "everything"
01:02 <****> and /forums is where ?
01:02 <****> public_html/forums is the nonexistent place that i'm trying to redirect
01:02 <****> how about making it existent first ?
01:02 <****> a htaccess rewrite's not going to make much sense without it
01:03 <****> ok, it exists now
01:03 <****> adaptr: I didn't know that -
01:03 <****> plus, you gain the performance for not having to aprse it for EACH AND EVERY REQUEST
01:03 <****> *parse
01:03 <****> only silly people do that - oh, and megaspaz
01:04 <****> and you rewrite it to the full FQDN, since the pathinfo is added back on in a htaccess
01:04 <****> adaptr: if silly and nonfamliar with rewriting/redirecting are one and the same, then I guess i'm silly
01:04 <****> http://oldsite.mysite.com$1, in this case
01:05 <****> apache will insert the already present /forums/ part
01:05 <****> oh, unless it invokes an automatic redirect, which wil invalidate what I just said
01:05 <****> in other words, you should really read the rewrite documentation
01:05 <****> really
01:06 <****> if you don't want it to invoke a redirect, you MUST make oldsite a serveralias of the new site
01:06 <****> adaptr: I really, really will try :) In the meantime i thank you for the hlelp.
01:06 <****> no problemo, it's 2008 after all
01:06 <****> a whole new year ahead
01:06 <****> rofl
01:06 <****> rofl is Rolling On The Floor Laughing
01:07 <****> adaptr: so instead of making oldsite a virtualhost you suggest I make it a serveralias instead?
01:07 <****> if you don't want your rewrite to issue a redirect, yes
01:07 <****> it depends
01:08 <****> I am seriously wondering why you need a new site at all - what's wrong with forums, especially if it's not even used on the new site ?
01:08 <****> just copy paste the forums, done
01:09 <****> unless it needs to remain on separate hardware, which I seriously doubt
Total 11 pages. You are browsing page 1/11.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
