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)
-   -   htacess question (https://gfy.com/showthread.php?t=202434)

ramtar 11-27-2003 07:55 PM

htacess question
 
Ok need some help with htaccess, I have now:

RewriteEngine on
RewriteCond %{TIME_DAY} >1
RewriteRule ^.*index\.html$ %{TIME_DAY}.html

This use the html of the current day(01.htm...31.html) and convert it into:

http://www.bitches-in-heat.net/index.html

But, the problem is that it doesn't work for:

http://www.bitches-in-heat.net/

and all my traffic is pointing there

Any idea how can I fix this?

lil2rich4u2 11-27-2003 07:58 PM

Quote:

Originally posted by ramtar
Ok need some help with htaccess, I have now:

RewriteEngine on
RewriteCond %{TIME_DAY} >1
RewriteRule ^.*index\.html$ %{TIME_DAY}.html

This use the html of the current day(01.htm...31.html) and convert it into:

http://www.bitches-in-heat.net/index.html

But, the problem is that it doesn't work for:

http://www.bitches-in-heat.net/

and all my traffic is pointing there

Any idea how can I fix this?

im no good with htaccess so id prolly try to redirect all root traffic to the index.html file where it can be sorted by htaccess.

i prolly misunderstood the question though, a bit tired ATM lol

ramtar 11-27-2003 08:03 PM

cannot do that I will loose trades "ri" information

swedguy 11-27-2003 08:14 PM

I would do it like this....

RewriteEngine on
RewriteCond %{TIME_DAY} >1
RewriteCond %{REQUEST_URI} ^/index.html$ [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* %{TIME_DAY}.html

ramtar 11-27-2003 08:19 PM

worked thanks a lot dude :thumbsup

swedguy 11-27-2003 08:21 PM

np :thumbsup

mryellow 11-27-2003 08:48 PM

Hey Swed,

Never noticed that before...

Cool if I add it to my htaccess info page?

http://www.webpimps.com/scripts/htaccess/

-Ben

swedguy 11-27-2003 11:40 PM

Quote:

Originally posted by mryellow
Hey Swed,

Never noticed that before...

Cool if I add it to my htaccess info page?

http://www.webpimps.com/scripts/htaccess/

-Ben

Sure, no problem :thumbsup


All times are GMT -7. The time now is 05:14 PM.

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