Forums / General Questions / htaccess pages that don't exist

htaccess pages that don't exist

Views: 913

Results 1 to 5 of 5
17 Mar 2014, 5:00 PM
#1
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
859
Plugin Contributions:
0

htaccess pages that don't exist

Sorry if this has been covered here (I'm sure it has) but I can't find it.

1.3.9h

Okay so if I change index.php?main_page=somenonpage I get not found or forwarded to index depending on admin settings.

How do I have example.com/nonexistdir or example.com/nofilehere.php or example.com/index.php?something=nothing also follow the admin rules for page not found?

Thank You,
John

17 Mar 2014, 5:44 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: htaccess pages that don't exist

I believe what you are asking is to stop seeing the default hosting service 404 page yes?

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

17 Mar 2014, 8:14 PM
#3
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
859
Plugin Contributions:
0

Re: htaccess pages that don't exist

No.
the url to a define page for example is somesite.com/index.php?main_page=contact_us
so if you changed it just a bit somesite.com/index.php?main_page=contactus you get the redirect you've setup in the admin. it takes you to 404 not found or the home page...

Now, if you change the url like this somesite.com/contact_us or somesite.com/oooodlesofnoodles.php
.... you are shown the home page. Even with a canonical tag this is not good.

Zencart does deal with pages not found when that page url is structured in a way that works inside of zencart. In these cases it doesn't so it should end in a server 404 but it's not happening that way and I need to know why.

Thank You, John

17 Mar 2014, 9:48 PM
#4
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
859
Plugin Contributions:
0

Re: htaccess pages that don't exist

Found the problem. There was a rule in my htaccess for WPress that was forwarding any unknown file or dir to the index.php.

Thanks for playing along,
John

17 Mar 2014, 10:04 PM
#5
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: htaccess pages that don't exist

Thanks for getting back, glad it's fixed.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian