Replicate A Page On All Paths (Need Help)

Lukas

Acquaintance
BizNotes
0.00
(built the site on 000webhost just for testing)
So, I got someone on Fiverr to remake the link page of ShortenBuddy and they did. Screenshot_20200226-080628~2.png
How can I make it so that it has the index page whatever path you visit, however it does not redirect to the index page otherwise the script wouldn't work since what it does is take you to ShortenBuddy.com + the path.
Simplified, I need to have the index page appear on every path visited but not a redirect to the index page. Heres a link to the testing website. http://lukasyh.000webhostapp.com/
Screenshot_20200226-081102~2.png
 
Last edited by a moderator:
D

Deleted member 403

Guest
@idk might help you, he is a developer and i think he is good at these stuff!
 
I

idk

Guest
I don't think I quite understand what you're trying accomplish. Are you trying to serve all shortened URLs via your website?
 
I

idk

Guest
I was able to solve this in PM earlier today so I'll put the solution here for future reference.

Adding this to the .htaccess-file will send all requests to the index page, as long as the request doesn't correspond to a file or a directory:

Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ / [L,QSA]
 

Royalty

Resident Member
Verified Poster
BizNotes
-140.00
Duplicate content is content that appears on the Internet in more than one place. That “one place” is defined as a location with a unique website address (URL) - so, if the same content appears at more than one web address, you’ve got duplicate content.
 

Hurraira

Familiar Face
Verified Poster
BizNotes
-50.00
Relaxation through deep breathing techniques, relaxation imagery, tension-relaxation contrasts, cue-controlled relaxation, and biofeedback.
Cognitive techniques: Review your attitudes and values, restructure your thinking, set goals, use positive imagery, rehearse mentally, schedule.
 

tolutronics

Reputable
Verified Poster
BizNotes
0.00
I really don't have the full understanding of your request but with the little I understood from my experience with 000webhost so far, I think the magic will be done in your .htaccess file in the public folder of your server.
 
Top