Replicate A Page On All Paths (Need Help)

Lukas

New member
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:

idk

Familiar Face
Verified Poster
BizNotes
170.00
I don't think I quite understand what you're trying accomplish. Are you trying to serve all shortened URLs via your website?
 

idk

Familiar Face
Verified Poster
BizNotes
170.00
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

Up-and-Coming Sensation
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

Acquaintance
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

Familiar Face
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
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock