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)
-   -   Very Basic Website Question... (https://gfy.com/showthread.php?t=1201301)

clickity click 06-08-2016 03:46 PM

Very Basic Website Question...
 
Hey,

I have a website that I don't wish to be made public yet. I have a "holding page".
It is mysite.com/index.htm

I would like to make a fancy wordpress site which I installed. It's address is mysite.com/index.php

The problem is if I go to the index.php it just loads the index.htm Does htm take precedence over .php?

How can I edit and view my new wordpress site but hide the root domain?

AdultKing 06-08-2016 03:47 PM

.htaccess

Let me google that for you

clickity click 06-08-2016 03:55 PM

Quote:

Originally Posted by AdultKing (Post 20949761)

Can you read?

Because your answer doesn't help me at all. I don't want people not to see my site. Actually I want them to see the main page but I want to edit the rest of the pages. See?

AdultKing 06-08-2016 03:59 PM

Quote:

Originally Posted by clickity click (Post 20949791)
Can you read?

Because your answer doesn't help me at all. I don't want people not to see my site. Actually I want them to see the main page but I want to edit the rest of the pages. See?

You can still do that with .htaccess rules.

Fuck you're stupid.

clickity click 06-08-2016 04:00 PM

Quote:

Originally Posted by AdultKing (Post 20949812)
You can still do that with .htaccess rules.

Look stupid. If you are not going to help get TFOOMT.

Thanks.

clickity click 06-08-2016 04:20 PM

Still need help.

CPA-Rush 06-08-2016 05:48 PM

hahahaha

Serge Litehead 06-08-2016 06:50 PM

Quote:

Originally Posted by clickity click (Post 20949758)
Hey,

I have a website that I don't wish to be made public yet. I have a "holding page".
It is mysite.com/index.htm

I would like to make a fancy wordpress site which I installed. It's address is mysite.com/index.php

The problem is if I go to the index.php it just loads the index.htm Does htm take precedence over .php?

How can I edit and view my new wordpress site but hide the root domain?

it shouldn't load index.htm file if you go to index.php (unless something somewhere defined or tells it to do so, which is not a default behaviour)

if you are going to yoursite.com/ and seeing index.htm that's what you wanted actually. your visitors can see your index.htm at yoursite.com/ and you can work on your index.php that your can preview by going to yoursite.com/index.php directly

index.htm may have a precedence - it usually defined in httpd.conf or can be added to .htaccess, or possibly could be somewhere in cpanel

Serge Litehead 06-08-2016 07:04 PM

just realized it's a WP that doing redirect to the root of domain and you end up with index.htm

you'll need to find a work around to that which is going to suit you best. like a maintenance plugin that allows custom page. or just put an index.htm and setup development version on a subdomain or folder.

some .htaccess voodoo may get you both files working fine as intended though

moln4r 06-08-2016 08:27 PM

Install some "coming soon" plugin to wp, for example the SunshinePlugin allows you to define that only you can see the index page visitors only see the coming soon page.

420 06-08-2016 08:40 PM

Is this a trick question? Rename index.php

clickity click 06-09-2016 12:03 AM

Quote:

Originally Posted by holograph (Post 20950217)
just realized it's a WP that doing redirect to the root of domain and you end up with index.htm

you'll need to find a work around to that which is going to suit you best. like a maintenance plugin that allows custom page. or just put an index.htm and setup development version on a subdomain or folder.

some .htaccess voodoo may get you both files working fine as intended though

Ok, i'll try .htaccess. thanks

LouiseLloyd 06-09-2016 12:19 AM

Not an answer to your question as such, but thought you might appreciate this...

https://wordpress.org/plugins/ultima...ing-soon-page/

A "Coming Soon" holding page for wordpress, all guest see the coming soon page, only admin can access full site.

LouiseLloyd 06-09-2016 12:23 AM

Quote:

Originally Posted by moln4r (Post 20950286)
Install some "coming soon" plugin to wp, for example the SunshinePlugin allows you to define that only you can see the index page visitors only see the coming soon page.

Oops missed this, but yeah agree, will serve your requirements.

k33n 06-09-2016 12:34 AM

I would do it with htaccess rule

Rewrite condition ^! M\Y\I\P\
Rewrite rule ^(.*) /yourhtmfile.htm [L, R=302]

Not the exact code but is something similar.Google will tell you more


All times are GMT -7. The time now is 04:49 AM.

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