Problem with URL's
Permalink
Hi there,
I got this problem when I tried to change my URL's to exclude the index.php from the URL.
The problem is that I thought it should be a good idea to change this. Whell I changed it, but now my website is not viewable. But when I go to edit mode it will send me to the website that's now running live, that I want to replace when my new Concrete5 is finished. I got to fix this manually? Is there anybody who can tell me how to fix this?
To get the idea:
This is the site I'm working on:
https://www.ontwikkel.jspreclame.nl/index.php?cID=300...
This is the site that's running now
http://www.jspreclame.nl
Kindly regards,
Joni
I got this problem when I tried to change my URL's to exclude the index.php from the URL.
The problem is that I thought it should be a good idea to change this. Whell I changed it, but now my website is not viewable. But when I go to edit mode it will send me to the website that's now running live, that I want to replace when my new Concrete5 is finished. I got to fix this manually? Is there anybody who can tell me how to fix this?
To get the idea:
This is the site I'm working on:
https://www.ontwikkel.jspreclame.nl/index.php?cID=300...
This is the site that's running now
http://www.jspreclame.nl
Kindly regards,
Joni
If you still have the "pretty URL enabled", look to see if you have a .htaccess file in your root directory. If it is NOT there, then it won't work properly, in which case you'll need to manually upload one via FTP.
Thanks PineCreativeLabs,
I did turn it off again. But now it all shut down now and I even can reach the dashboard.
And you are right, I just see an empty .htaccess. But the problem is, I don't know what kind of redirect I got to put in to fix it manually. Then the upload shouldn't be a problem. I'm just blend on this one ;)
I did turn it off again. But now it all shut down now and I even can reach the dashboard.
And you are right, I just see an empty .htaccess. But the problem is, I don't know what kind of redirect I got to put in to fix it manually. Then the upload shouldn't be a problem. I'm just blend on this one ;)
Below is code that you can save a .htaccess file that should work. Make sure to re-enable pretty URLs.
You should be able to still get to the dashboard by going to:
yourdomain.com/index.php/dashboard/system/seo/urls
Additionally, you may want to set the canonical URLs, if you haven't done so already. This is optional, but is recommended for SEO purposes.
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] </IfModule>
You should be able to still get to the dashboard by going to:
yourdomain.com/index.php/dashboard/system/seo/urls
Additionally, you may want to set the canonical URLs, if you haven't done so already. This is optional, but is recommended for SEO purposes.
Thank you very much again,
I used the .htaccess. There was a difference. Now the pages turn out white instead of showing pages from my website running on: http://www.jspreclame.nl.
But it still not worked out properly.
Could be a difference that I should activate 'Enable Pretty URL's' after the website is redirect tohttp://www.jspreclame.nl?
And yes, you are right; I still get in the dashboard like you send me, but I can'y change these setting.
Man, I got do this more often, to get things work right.
I used the .htaccess. There was a difference. Now the pages turn out white instead of showing pages from my website running on: http://www.jspreclame.nl.
But it still not worked out properly.
Could be a difference that I should activate 'Enable Pretty URL's' after the website is redirect tohttp://www.jspreclame.nl?
And yes, you are right; I still get in the dashboard like you send me, but I can'y change these setting.
Man, I got do this more often, to get things work right.
Your site seems to be working just fine for me, including the "clean URLs".
Ok are you sure, we're talking about the same site here?
The site that's running now:http://www.jspreclame.nl is gonna be replaced by:https://www.ontwikkel.jspreclame.nl/... when the site is ready.
So, when I go tohttps://www.ontwikkel.jspreclame.nl/... and I want to visit 'Diensten' then it brings me to:https://www.jspreclame.nl/jsp-reclame/diensten... - Page not found - and he shows me the sitemap. Instead of bringing me to:https://www.ontwikkel.jspreclame.nl/diensten...
And yes, you are right, the site onhttp://www.jspreclame.nl is working fine with clean URL's also. But that site is not the problem.
The site that's running now:http://www.jspreclame.nl is gonna be replaced by:https://www.ontwikkel.jspreclame.nl/... when the site is ready.
So, when I go tohttps://www.ontwikkel.jspreclame.nl/... and I want to visit 'Diensten' then it brings me to:https://www.jspreclame.nl/jsp-reclame/diensten... - Page not found - and he shows me the sitemap. Instead of bringing me to:https://www.ontwikkel.jspreclame.nl/diensten...
And yes, you are right, the site onhttp://www.jspreclame.nl is working fine with clean URL's also. But that site is not the problem.