• Here is the link: Page

    Here’s what I did:

    I created a custom template called ‘media’, uploaded it, changed the template (in the dropdown) in the dashboard, and everything was working fine.

    Then, I entered some javascript into the media template, uploaded it, and the ‘page not found’ came up. So, I removed the javascript thinking that was the problem, uploaded it, and still got a ‘page not found’.

    I even switched back to the default template through the dashboard and I still get a ‘page not found’.

    Can someone please help me diagnose this problem?

    By the way, the javascript I entered was JW’s script for the flv player (if it’s of any relevance):

    <script type='text/javascript'>
      var so = new SWFObject('https://dresdenandjohnston.com/media/player.swf','mpl','425','200','9');
      so.addParam('allowfullscreen','true');
      so.addParam('allowscriptaccess','always');
      so.addParam('wmode','opaque');
      so.addVariable('file','https://dresdenandjohnston.com/media/playlist.xml');
      so.addVariable('backcolor','#130847');
      so.addVariable('frontcolor','#ffffff');
      so.addVariable('lightcolor','#ffffff');
      so.addVariable('screencolor','#ffffff');
      so.addVariable('playlist','bottom');
      so.write('mediaspace');
    </script>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Add this code in htaccess:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    And set your desired permalink settings.

    Thanks,

    Shane G.

    Thread Starter cpkid2

    (@cpkid2)

    Thanks, Shane.

    The following code was already in my .htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    If you notice, I was just missing the “ErrorDocument 404 /index.php?error=404” line. So I replaced that whole section w/ the one you gave me and it’s still leading me to a “page not found”.

    Thanks for your help. Do you have any other suggestions?

    Thread Starter cpkid2

    (@cpkid2)

    I was playing around w/ this a bit more and tried to create a new ‘media’ page called ‘media 2’ w/ the media template I made. It worked!

    So then I deleted the old media page and edited the new media-2 page to just ‘media’ and it stopped working again. For some reason /media cannot be accessed but /media-2 can. What could be causing this problem?

    Thread Starter cpkid2

    (@cpkid2)

    Eureka!

    It was because I had a folder named “media” in the root. I feel like an idiot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only one page comes up with a “page not found”’ is closed to new replies.