Full server path name in URL

Status
Not open for further replies.

Owen Walter

New Member
Messages
12
Reaction score
0
Points
1
Basically when I click on any link in my homepage I'm redirected to "<domain>/home/<username>/public_html/<path>". This is basically a duplicate of this post that was ignored. Has anyone found a solution?
 

lylex10h

Active Member
Messages
982
Reaction score
71
Points
28
Please create a .htm file with the following code in your account and provide a link to that file.
HTML:
<html>
<body>
<a href="https://x10hosting.com/">Link Test</a>
</body>
</html>
 

lylex10h

Active Member
Messages
982
Reaction score
71
Points
28
I'm not familiar with Grav at all but my diagnosis is that you have /home/owenwx10/public_html/ some where in the config for it. Try changing this variable to /
 

Owen Walter

New Member
Messages
12
Reaction score
0
Points
1
I'm not familiar with Grav at all but my diagnosis is that you have /home/owenwx10/public_html/ some where in the config for it. Try changing this variable to /
I switched to Grav after having this same problem with Drupal. I think it's a server/apache config issue.

EDIT: If it helps config is copied without modification from my local install.
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
Check .htaccess and enable/add RewriteBase / (assuming the .htaccess is in the public_html root, if in a subfolder it would need to be like RewriteBase /subfolder/)

Needs to go before any rewrite rules and after rewrite is turned on, many times the .htaccess that comes with a cms/forum and such have it already written in where it needs to be, but as a comment only as not all servers actually need it.
 

Owen Walter

New Member
Messages
12
Reaction score
0
Points
1
Check .htaccess and enable/add RewriteBase / (assuming the .htaccess is in the public_html root, if in a subfolder it would need to be like RewriteBase /subfolder/)

Needs to go before any rewrite rules and after rewrite is turned on, many times the .htaccess that comes with a cms/forum and such have it already written in where it needs to be, but as a comment only as not all servers actually need it.

That worked! Thanks so much!
 
Status
Not open for further replies.
Top