How do i get rid of the /index page?

Status
Not open for further replies.

easysust

New Member
Messages
9
Reaction score
0
Points
1
i can load my page using a /wp after my domain name, but when i use domainname.com, it goes to the /index page.
this is a new site, please help :)
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
You can set a "redirect" in your [ .htaccess ] file

OR

If "domainname.com" is a 'parked' or 'addon' domain - redirect it to [ public_html/wp ] folder

OR

Re-install WordPress in your [ public_html ] folder
 

easysust

New Member
Messages
9
Reaction score
0
Points
1
ok, i tried one redirect in the .htaccess file and then i got a 403 error. but ive seen a few different methods tho.
what can you suggest?
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
I'd use something like this:

Code:
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ wp/ [L]
</IfModule>
 

easysust

New Member
Messages
9
Reaction score
0
Points
1
Leaf,
Ok, changed the .htaccess file with the code you gave me, it didnt work. i also went thru the settings in the Index Manager, but had same results.. either i got the /index or a 403 error. but the domainname.com/wp part worked thru all the changes..
Can we redirect the word press somehow to work or do i re-install the WP??

Thanks,
Corey
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
I would do......
Code:
# if not already in your root .htaccess file add the next two (2) lines
RewriteEngine on
RewriteBase /
#
# then add these next two (2) lines - replace [ domainname.com ] with your real main-domain
RewriteCond %{HTTP_HOST} ^(www.)?domainname.com$
RewriteRule ^(/)?$ wp [L]
 
Last edited:

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
@easysust The index.php or index.html file is just the main page of a website....
 

easysust

New Member
Messages
9
Reaction score
0
Points
1
Leafy, ok i understand that much, Index,php would be the main page. i foudn the index.php a couple places under public_html/wp directories. thought it would be in public_html dir, but no.
Anyways, im a network guy, so talk to me like you would a small child or a golden retreiver. this is my first attempt at a web site :)
Whats next?
 

easysust

New Member
Messages
9
Reaction score
0
Points
1
oh btw, i put a blank index.html file into /public_html, and now its blank when i try to load the domainname.com page.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Anyways, im a network guy, so talk to me like you would a small child or a golden retreiver. this is my first attempt at a web site :)

1. I said No!
2. Fetch girl!

I get a 403 Forbidden when I go to your site without the /wp ... with the /wp I get your blog
Try posting the .htaccess from /public_html (NOT /public_html/wp) here.

(personally, if the site is just the blog, I would have installed WordPress in / , not in /wp)
 

easysust

New Member
Messages
9
Reaction score
0
Points
1
sorry, i fixed the 403 error, had the Index Manager on the wrong setting.. now again,i get the /index error, if you wnat to see this. Ill try your suggest real quick :)
 

easysust

New Member
Messages
9
Reaction score
0
Points
1
.htaccess from /public_html dump...
Before this, this file was completed empty until i got some suggestions from Leafy and dstilter.


<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ wp/ [L]
</IfModule>IndexOptions -FancyIndexing

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.)?http://www.easysustainableincome.x10host.com$
RewriteRule ^(/)?$ wp [L]Options -Indexes
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Rename .htaccess to .htaccessBAK
Creat new .htaccess
It should contain just one line:

Code:
DirectoryIndex index.html index.php wp/index.php
 
Last edited:
Status
Not open for further replies.
Top