One minor issue with my new C5 site...
Permalink
Hi folks
I developed my site locally on my Windows 7 machine using XAMPP.
I then uploaded the site, created a new database and imported my sql data.
I'm running a Windows server with PHP5 support. I changed the permissions on the config, files, packages and updates directories and I can successfully upload files to the file manager, see all my content, edit and publish pages etc
All sounds great, the only issue I have is with pretty URLs:
My site is at:
http://dev4.madesimplemedia.co.uk...
But I need to add the index.php to see it:
http://dev4.madesimplemedia.co.uk/index.php...
It's the same with all the pages, even the dashboard needs the index.php in there.
PrettyURLs are enabled and I have cleared the cache a few times to make sure it's not that.
Any ideas what the problem could be?
Thanks in advance!
I developed my site locally on my Windows 7 machine using XAMPP.
I then uploaded the site, created a new database and imported my sql data.
I'm running a Windows server with PHP5 support. I changed the permissions on the config, files, packages and updates directories and I can successfully upload files to the file manager, see all my content, edit and publish pages etc
All sounds great, the only issue I have is with pretty URLs:
My site is at:
http://dev4.madesimplemedia.co.uk...
But I need to add the index.php to see it:
http://dev4.madesimplemedia.co.uk/index.php...
It's the same with all the pages, even the dashboard needs the index.php in there.
PrettyURLs are enabled and I have cleared the cache a few times to make sure it's not that.
Any ideas what the problem could be?
Thanks in advance!
Thanks for the fast reply - it's fasthosts.
I did not see that you had created the /.htaccess file and pasted the required configuration lines into it. Also, make sure that /.htaccess file permissions are set readable(644).
Hi there, I do have a .htaccess and it contains:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
It is readable too.
Does it need modifying for my Windows server or anything else need changing?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
It is readable too.
Does it need modifying for my Windows server or anything else need changing?
Anything in the logs? I don't have any experience with Windows platforms on your web host Fasthosts, so I'm running out of options. In the forums I did find this:
http://www.concrete5.org/community/forums/installation/site-migrati...
The above thread mentioned "server configured for C5". I'm not sure what that means. Safe mode could be turned on. There is a httpd.conf security setting that will prevent .htaccess configurations from working.
I think your best bet is to contact Fasthosts and see what they say.
If any Fasthosts "subject matter experts" are out there, please feel free to jump in.
http://www.concrete5.org/community/forums/installation/site-migrati...
The above thread mentioned "server configured for C5". I'm not sure what that means. Safe mode could be turned on. There is a httpd.conf security setting that will prevent .htaccess configurations from working.
I think your best bet is to contact Fasthosts and see what they say.
If any Fasthosts "subject matter experts" are out there, please feel free to jump in.
Hi thanks for having another look.
There's nothing in the log.
I don't have that issue, I can use the file uploader. It's just an issue needing to put the index.php in all the time :(
I might try the fasthosts support then, thanks again for having a look
There's nothing in the log.
I don't have that issue, I can use the file uploader. It's just an issue needing to put the index.php in all the time :(
I might try the fasthosts support then, thanks again for having a look
You are very welcome. Pretty URL's is a big plus in regard to SEO and users really want that functionality. If you are happy, I am happy :) If you have any problems, please feel free to post. This is a very knowledgeable and friendly community.
-----Original Message-----
From: Concrete5 Community [mailto:discussions@concretecms.com]
Sent: Thursday, May 26, 2011 11:18 AM
To: jimk@nteaviation.com
Subject: One minor issue with my new C5 site...: One minor issue with my new C5 site...
-----Original Message-----
From: Concrete5 Community [mailto:discussions@concretecms.com]
Sent: Thursday, May 26, 2011 11:18 AM
To: jimk@nteaviation.com
Subject: One minor issue with my new C5 site...: One minor issue with my new C5 site...
After some searching I found the answer.
1) Install URL Rewrite for IIS7. This is done using Remote Desktop onto the server, download Microsoft Web Platform installer and then launch WPI and add "URL Rewrite 2.0"
2) Create web.config in the root of the site and add:
This is on Windows 2008 Server R2 - hope this helps out other people who are deploying to a Windows Server.
1) Install URL Rewrite for IIS7. This is done using Remote Desktop onto the server, download Microsoft Web Platform installer and then launch WPI and add "URL Rewrite 2.0"
2) Create web.config in the root of the site and add:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Index.php" stopProcessing="true"> <match url="^site/?(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{THE_REQUEST}" pattern="^POST" ignoreCase="false" negate="true" /> </conditions> <action type="Redirect" url="/{R:1}" redirectType="Permanent" /> </rule> <rule name="File exception" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll">
Viewing 15 lines of 23 lines. View entire code block.
This is on Windows 2008 Server R2 - hope this helps out other people who are deploying to a Windows Server.
Which hosting company are you using, if its Heart Internet you need to do a bit of a hack. Will let you know how to do it if you are with them.