GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess (https://gfy.com/showthread.php?t=678411)

Juicy D. Links 11-17-2006 03:15 PM

.htaccess
 
yo

I want to make it so that when users hit

http://www.lickmynuts.com they will be sent to

http://www.lickmynuts.com/testciles/itchy.php


hook it up

Cyber Fucker 11-17-2006 03:23 PM

Code:

redirect lickmynuts.com http://www.lickmynuts.com/testciles/itchy.php
But I'm not sure...

OG LennyT 11-17-2006 03:26 PM

setup the redirect URL with your domain service

TheDoc 11-17-2006 03:42 PM

Here ya go Juicy

http://www.thedocblog.com/tutorials/...-301-htaccess/

TheDoc 11-17-2006 03:43 PM

Or create an index.php file and put it in the root dir of the domain.

Code:

<?php
header("Location: http://www.lickmynuts.com/testciles/itchy.php");
exit;
?>


StickyGreen 11-17-2006 03:46 PM

i use htaccess to block sites...

squishypimp 11-17-2006 03:48 PM

juiiiccccy :pimp

Kimo 11-17-2006 05:10 PM

lol at that domain name

_Lush_ 11-17-2006 05:53 PM

or you can do this

Code:

alias index.html http://www.lickmynuts.com/testciles/itchy.php
if your index page is named something else then replace index.html with the proper name

marko13 11-17-2006 05:55 PM

you are joking right....

_Lush_ 11-17-2006 05:58 PM

Quote:

Originally Posted by lushy (Post 11338765)
or you can do this

Code:

alias index.html http://www.lickmynuts.com/testciles/itchy.php
if your index page is named something else then replace index.html with the proper name


HAHA I meant

Code:

Redirect /index.html http://www.lickmynuts.com/testciles/itchy.php
copied the wrong line from one of my htaccess files

Cyber Fucker 11-17-2006 06:00 PM

Quote:

Originally Posted by lushy (Post 11338794)
HAHA I meant

Code:

Redirect /index.html http://www.lickmynuts.com/testciles/itchy.php
copied the wrong line from one of my htaccess files

Yup, this should work :)

Scroto 11-17-2006 06:19 PM

why would you want to use htaccess for this? :)

pornpf69 11-17-2006 07:50 PM

Quote:

Originally Posted by TheDoc (Post 11337902)
Or create an index.php file and put it in the root dir of the domain.

Code:

<?php
header("Location: http://www.lickmynuts.com/testciles/itchy.php");
exit;
?>


that is what I was going to suggest!

StarkReality 11-17-2006 08:02 PM

Quote:

Originally Posted by lushy (Post 11338794)
HAHA I meant

Code:

Redirect /index.html http://www.lickmynuts.com/testciles/itchy.php
copied the wrong line from one of my htaccess files

That's the one, although without a status it's a 302 temporary, if you plan to move the page permanently, the code would be:

Code:

Redirect permanent /index.html http://www.lickmynuts.com/testciles/itchy.php
The advantage is that google and other search engines will count all ingoing links of the old index.html and PR towards the new URL...btw, the code below is handy if you want to move a whole site to a new domain:

Code:

Redirect permanent / http://www.newdomain.com/
Just in case google starts hating one of your domains...

marketsmart 11-17-2006 08:03 PM

maybe just a meta refresh tag?

StarkReality 11-17-2006 08:05 PM

Quote:

Originally Posted by TheDoc (Post 11337902)
Or create an index.php file and put it in the root dir of the domain.

Code:

<?php
header("Location: http://www.lickmynuts.com/testciles/itchy.php");
exit;
?>


Possible, but bad for search engines, they hate php/meta/javascript redirects

gfx3 11-17-2006 08:28 PM

I think you can do this just from the admin panel your webhost gave you.

mikeet 11-17-2006 08:40 PM

Open up your .htaccess file and put this on the first line:

DirectoryIndex /testciles/itchy.php

fetishblog 11-17-2006 08:51 PM

Google safe redirect:

http://www.searchenginepromotionhelp...irect-safe.php

TheDoc 11-17-2006 10:07 PM

I posted a 301 redirect link too, but the php redirect is fine to use for a domain that already redirects. And yes, I understand it may just have been an example site, but you never know.

mlove 11-17-2006 10:11 PM

RewriteEngine On
RewriteRule / http://www.lickmynuts.com/testciles/itchy.php [R]

i think that might work but i haven't used mod_rewrite in a while.

The Sultan Of Smut 11-17-2006 11:08 PM

Quote:

Originally Posted by mlove (Post 11340230)
RewriteEngine On
RewriteRule / http://www.lickmynuts.com/testciles/itchy.php [R]

i think that might work but i haven't used mod_rewrite in a while.

[R=301]?

crap 8 char

Chariott 11-18-2006 01:08 AM

Never use meta/php/redirect!

Use mod_rewrite. It is only right way to do it all.
I can help you tune it up. I'm experianced in modrewrite.
Just hit my ICQ: 386-430-454 and we will do it in a minute.


All times are GMT -7. The time now is 06:12 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123