Jump to content

Recommended Posts

Posted

SOLVED.

 

I'm hosted at hostgator, but I hope I can get some help here.

So some of the design on my page is being directed there by php.

&--#60;?php include_once("templateDesign.php"); ?&--#62;

I wanted to remove the file extensions, so you could just type mysite.com/example and the .php extension wouldn't come up. I did this by using this code in my htaccess file:

# Apache Rewrite Rules

&--#60;IfModule mod_rewrite.c&--#62;

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

 

# Remove .php-extension from url

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}\.php -f

RewriteRule ^([^\.]+)/$ $1.php

 

# End of Apache Rewrite Rules

&--#60;/IfModule&--#62;

Now, the problem is it isn't loading the content from the .php correctly. Just some come up, indicating that it reaches the .php file with content, but doesn't load it correctly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...