Jump to content

.htaccess file mod rerwrite rule coming up with 404 page not found


agallo

Recommended Posts

I have a rather odd issue that I don't know how else to troubleshoot. I have a domain xxx.com with 2 subdomains a.xxx.com and b.xxx.com. The 2 sub domains are just development areas for the domain xxx, so essentially they are the exact same. The purpose of this post was to find an alternative approach to troubleshooting my issue. The issue is that the domain and sub domains all use the following .htaccess file:

RewriteEngine on
RewriteRule ^~(.+)$ profile.php?n=$1
ErrorDocument 404 /error404.php

 

If you go to a page that invokes the use of .htaccess file http://xxx.com/~profilename I get a generic 404 page not found comes up. However, the part that confuses me is that I should be getting a custom error page as if I went to http://xxx.com/somerandobs, but I don't?? Also, troubling me is that both sub domains are working perfectly. http://a.xxx.com/~profilename resolves to http://a.xxx.com/profile.php?n=profilename. I cannot think of anything outside of this domain that would cause this other than the .htaccess file. This was all working great on my legacy box before I swapped boxes. Thanks for the help in advance!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.