1 Replies - 255 Views - Last Post: 09 September 2011 - 07:41 AM

#1 xTorvos  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 61
  • View blog
  • Posts: 271
  • Joined: 23-October 09

URL Rewrite Issues on Apache

Posted 08 September 2011 - 09:37 PM

Hello,

I'm trying to get a website up and running for a club at my school but I'm having issues rewriting the URL.

Currently I have something that looks like this:
http://server.college.university.edu/~username/club/index.php


I would like to change that to this:
http://club.org/index.php


I own the club.org domain that I'm using and just having the registrar http redirect it to the first URL. I could have it encapsulate it in a frame, but I hear that this is bad practice so I'm trying to not settle for it.

Does anybody know how I could accomplish this? I've been working a little with .htaccess, but I can't seem to get anything working.

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: URL Rewrite Issues on Apache

#2 BetaWar  Icon User is online

  • #include "soul.h"
  • member icon

Reputation: 1147
  • View blog
  • Posts: 7,132
  • Joined: 07-September 06

Re: URL Rewrite Issues on Apache

Posted 09 September 2011 - 07:41 AM

I'm not sure this is the best solution, but it would work. You can use filegetcontents on the appropriate external file based on whatever URL the user is attempting to access. Then you just have to make sure that either (A) all the images/ documents/ zip files are also stored on your club.org website or (B) make sure to use all absolute paths on your server.college.uni... website (so the files are still accessed from the other website). After that you just have to update all the links so that they either use relative pathing or go to the club.org site.

Hope that makes sense.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1