Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:09 pm EST

Geeklog Forums

How do I do this...


Status: offline

thefilmmaker

Forum User
Regular Poster
Registered: 10/18/04
Posts: 105
I want to make my site URL go straight to my Geeklog site. At the moment the Geeklog site is its own directory and when a user accesses my site they must click a link i set up to go to the Geeklog site. I want it to go straight their.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Simply move everything one directory level up and adjust your paths and the site URL. And maybe read the bit about public_html in the installation instructions again ...

bye, Dirk
 Quote

Status: offline

thefilmmaker

Forum User
Regular Poster
Registered: 10/18/04
Posts: 105
I was told their was a piece of code that could just be pasted onto the index.html file. That redirected the user? I would prefer this - can you help?
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Look at w3schools.com for the redirect script. It's not 100% safe with every browser I'm afraid. Does your hostingprovider supply you with a decent controlpanel like cPanel, Plesk or DirectAdmin? Those offer lots of easy redirect possibilities.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
If your webserver is running on apache and you have access to your own .htaccess file, you can easily setup the redirect here.

So a simple redirect line should do the trick or using the DirectoryIndex .

Text Formatted Code

DirectoryIndex filename.html index.cgi index.pl default.htm

or

Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html

 


More details here or here

Best Regards,
Boris
Vanrillaer.com - our Family Portal
 Quote

thefilmmaker

Anonymous
I dont unerstand. When I do either of these it just displays it as text on my page and does not redirect to anywhere.
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
The .htaccess file is a real file on a apache webserver.

It's a hidden file (hence the dot in front).

As beewee suggested have a look if your hosting provider offers a redirect interface, this is normally a user friendly way of editing your .htaccess file.

If I confused you, just ignore the .htaccess option.

Why not edit your index.html file with a simple line like this in the header part.

Text Formatted Code
<meta http-equiv="refresh" content="0;URL=public_html/index.php">

Just make sure it is between your <head> and </head> tag
 


Should just work very fine on all browsers.




Vanrillaer.com - our Family Portal
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I still think moving all the files one directory level up would be the best solution (unless your hosting service lets you change the document root, as beewee suggested).

My suspicion is that you have the files outside of Geeklog's public_html (config.php, etc.) in your web root now and that's really not how things should be (for security reasons, among other things).

bye, Dirk
 Quote

thefilmmaker

Anonymous
Thanks everyone - it works.
 Quote

All times are EST. The time is now 04:09 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content