Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

505 error page

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  configuring virtualhost LDAP  
Author Message
brian9

External


Since: Aug 07, 2003
Posts: 3



(Msg. 1) Posted: Thu Aug 07, 2003 5:44 am
Post subject: 505 error page
Archived from groups: alt>apache>configuration (more info?)

Hi All

Don't know if this can be done, I have a shared hosting with an ISP
and I want to restructure my directories on the server. I have various
domains pointing to my site which point to sub directories, and most
search engines have listed the sites.
Because I am moving the directories about is there anyway of setting
something up that will do the following

If a user tries to access
mydomain.co.uk/dir-a/A-Page.html (or any page in that directory)
then they get redirected to
mydomain.co.uk/new-dir-a/

The problem is /dir-a/ will no longer exists so the script of what ever
need to be somewhere so it runs every the main domain is accessed
and then looks up what the users was looking for and then redirects them
to where I need them

I Hope that makes sense and any help will be great.

 >> Stay informed about: 505 error page 
Back to top
Login to vote
ian4

External


Since: Jul 30, 2003
Posts: 35



(Msg. 2) Posted: Thu Aug 07, 2003 5:44 am
Post subject: Re: 505 error page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Thu, 7 Aug 2003 02:44:20 +0100, "Brian"
<brian.TakeThisOut@nrwp.co.uk> amazingly managed to produce the following with
their Etch-A-Sketch:

 > Hi All
 >
 > Don't know if this can be done, I have a shared hosting with an ISP
 > and I want to restructure my directories on the server. I have
 > various domains pointing to my site which point to sub directories,
 > and most search engines have listed the sites.
 > Because I am moving the directories about is there anyway of
 > setting something up that will do the following
 >
 > If a user tries to access
 > mydomain.co.uk/dir-a/A-Page.html (or any page in that directory)
 > then they get redirected to
 > mydomain.co.uk/new-dir-a/
 >
 > The problem is /dir-a/ will no longer exists so the script of what
 > ever need to be somewhere so it runs every the main domain is
 > accessed
 > and then looks up what the users was looking for and then redirects
 > them to where I need them
 >
 > I Hope that makes sense and any help will be great.
 >
 >

RewriteEngine on
RewriteRule ^/dir-a/(.*)$ <a style='text-decoration: underline;' href="http://domain.com/new-dir-a/$1" target="_blank">http://domain.com/new-dir-a/$1</a>
[R=permanent,L]
RewriteRule ^/dir-b/(.*)$ <a style='text-decoration: underline;' href="http://domain.com/new-dir-b/$1" target="_blank">http://domain.com/new-dir-b/$1</a>
[R=permanent,L]

(note: the above should be on 3 lines, may wrap in this post)


etc etc etc.

Using the $1 means that if they goto /dir-a/A-Page.html, this will
then redirect to /new-dir-a/A-Page.html etc. Whatever they specify
after /dir-a/ will be assumed in the new location (meaning that
google etc should find your "new" files too, rather than a
redirection straight to the dir only (no file)).


HTH =)



Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPzG8nWfqtj251CDhEQLoJQCfVWgscs4C4LxTNziwCphK3qOY6I8AoPLw
qaoaEQLSEezSFHibU7Ql9gHn
=WsEA
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
<a style='text-decoration: underline;' href="http://www.digiserv.net" target="_blank">www.digiserv.net</a> | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: 505 error page 
Back to top
Login to vote
brian9

External


Since: Aug 07, 2003
Posts: 3



(Msg. 3) Posted: Thu Aug 07, 2003 5:58 pm
Post subject: Re: 505 error page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 >
  > > Hi All
  > >
  > > Don't know if this can be done, I have a shared hosting with an ISP
  > > and I want to restructure my directories on the server. I have
  > > various domains pointing to my site which point to sub directories,
  > > and most search engines have listed the sites.
  > > Because I am moving the directories about is there anyway of
  > > setting something up that will do the following
  > >
  > > If a user tries to access
  > > mydomain.co.uk/dir-a/A-Page.html (or any page in that directory)
  > > then they get redirected to
  > > mydomain.co.uk/new-dir-a/
  > >
  > > The problem is /dir-a/ will no longer exists so the script of what
  > > ever need to be somewhere so it runs every the main domain is
  > > accessed
  > > and then looks up what the users was looking for and then redirects
  > > them to where I need them
  > >
  > > I Hope that makes sense and any help will be great.
  > >
  > >
 >
 > RewriteEngine on
<font color=purple> > RewriteRule ^/dir-a/(.*)$ <a style='text-decoration: underline;' href="http://domain.com/new-dir-a/$1</font" target="_blank">http://domain.com/new-dir-a/$1</font</a>>
 > [R=permanent,L]
<font color=purple> > RewriteRule ^/dir-b/(.*)$ <a style='text-decoration: underline;' href="http://domain.com/new-dir-b/$1</font" target="_blank">http://domain.com/new-dir-b/$1</font</a>>
 > [R=permanent,L]
 >
 > (note: the above should be on 3 lines, may wrap in this post)
 >
 >
 > etc etc etc.
 >
 > Using the $1 means that if they goto /dir-a/A-Page.html, this will
 > then redirect to /new-dir-a/A-Page.html etc. Whatever they specify
 > after /dir-a/ will be assumed in the new location (meaning that
 > google etc should find your "new" files too, rather than a
 > redirection straight to the dir only (no file)).
 >

Hi Ian

Thanks for your reply, but where do I put this code? is it in
a Perl script or htaccess file???

Sorry to be a pain

Brian<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 505 error page 
Back to top
Login to vote
ian4

External


Since: Jul 30, 2003
Posts: 35



(Msg. 4) Posted: Thu Aug 07, 2003 5:58 pm
Post subject: Re: 505 error page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Thu, 7 Aug 2003 14:58:00 +0100, "Brian"
<brian.RemoveThis@nrwp.co.uk> amazingly managed to produce the following with
their Etch-A-Sketch:

 > Hi Ian
 >
 > Thanks for your reply, but where do I put this code? is it in
 > a Perl script or htaccess file???
 >
 > Sorry to be a pain


No pain at all.. I should have clarified =)

This should go in a .htaccess file, assuming, that your host allows
you this access from within .htaccess (it may need to be something
you have to ask your host).



Hope this helps clarify =)



Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPzJe9mfqtj251CDhEQKB4wCg37KrBCpzfl3ArHddI/aONMBmRxEAoKWH
ZzQNY6xu4c4wEkqTvsR2ojsq
=FTvK
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
<a style='text-decoration: underline;' href="http://www.digiserv.net" target="_blank">www.digiserv.net</a> | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 505 error page 
Back to top
Login to vote
brian9

External


Since: Aug 07, 2003
Posts: 3



(Msg. 5) Posted: Fri Aug 08, 2003 5:30 am
Post subject: Re: 505 error page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Ian

Still not working, but I now have a feeling its my ISP
thanks for the help


Brian

"Ian.H [dS]" <ian.DeleteThis@WINDOZEdigiserv.net> wrote in message
news:lln4jv0imt9druqsb7f2o56q8vqmehred1@4ax.com...
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 >
 > Whilst lounging around on Thu, 7 Aug 2003 14:58:00 +0100, "Brian"
 > <brian.DeleteThis@nrwp.co.uk> amazingly managed to produce the following with
 > their Etch-A-Sketch:
 >
  > > Hi Ian
  > >
  > > Thanks for your reply, but where do I put this code? is it in
  > > a Perl script or htaccess file???
  > >
  > > Sorry to be a pain
 >
 >
 > No pain at all.. I should have clarified =)
 >
 > This should go in a .htaccess file, assuming, that your host allows
 > you this access from within .htaccess (it may need to be something
 > you have to ask your host).
 >
 >
 >
 > Hope this helps clarify =)
 >
 >
 >
 > Regards,
 >
 > Ian
 >
 > -----BEGIN PGP SIGNATURE-----
 > Version: PGP 8.0
 >
 > iQA/AwUBPzJe9mfqtj251CDhEQKB4wCg37KrBCpzfl3ArHddI/aONMBmRxEAoKWH
 > ZzQNY6xu4c4wEkqTvsR2ojsq
 > =FTvK
 > -----END PGP SIGNATURE-----
 >
 > --
 > Ian.H [Design & Development]
 > digiServ Network - Web solutions
 > <a style='text-decoration: underline;' href="http://www.digiserv.net" target="_blank">www.digiserv.net</a> | irc.digiserv.net | forum.digiserv.net
 > Programming, Web design, development & hosting.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 505 error page 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
404 Error Page (PHP) - In httpd.conf, I put in this line. ErrorDocument 404 /404.html Now, when I go to www.myweb.com/123, I see the 404.html. But when I enter this line into the httpd.conf. ErrorDocument 404 /404.php And enter www.myweb.com/123, I get "The page canno...

mod_throttle - error ### page? - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Evening all =) I've had mod_throttle installed for some time, but never really configured a great deal (more for testing initially). While testing on a dev subdomain, once the quota was hit, the REQUESTed....

Code Page Apache - How can i set iso-8859-2 for default code page in apache / linux (httpd.conf) tnx sorry 4 my english :) Arek

page cannot be displayed with "www.yyy.com" address - I'm able to access the site when I prefix it with "http://". What configuration parameter allows me to access the site just using "www.yyy.com" instead of having me or other users type in the full "http://www.yyy.com"

html stats page generator. - hello does anyone know of a good html stats generator for windows? i'd be interested to create a stats page for my archives, as it receives quite a lot of traffic. i'd like to create a stats page with as diverse statistics as possible. many thanks ..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]