Pretty URLs
Permalink
I have searched the site and have not found a comprehensive answer.
I had my site in a concrete5 folder, placed
in a htaccess file and enabled pretty urls. This allowed my site to be accessed via mysite.com/concrete5/whatever-page.
What I want is mysite.com for the index page and mysite.com/whatever-page for other pages.
I moved the files out of the concrete5 folder and edited the .htaccess file accordingly. I could get onto mysite.com/whaterver-page but when I entered mysite.com I got the concrete5 page not found, which would return me to mysite.com/concrete5 which doesn't exist now. I also could not login, mysite.com/login was displayed but once details were entered I was redirected to mysite.com/concrete5 which of course doesnt exist so got the page not found again.
Any advice would be grateful!
I had my site in a concrete5 folder, placed
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /concrete5/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
in a htaccess file and enabled pretty urls. This allowed my site to be accessed via mysite.com/concrete5/whatever-page.
What I want is mysite.com for the index page and mysite.com/whatever-page for other pages.
I moved the files out of the concrete5 folder and edited the .htaccess file accordingly. I could get onto mysite.com/whaterver-page but when I entered mysite.com I got the concrete5 page not found, which would return me to mysite.com/concrete5 which doesn't exist now. I also could not login, mysite.com/login was displayed but once details were entered I was redirected to mysite.com/concrete5 which of course doesnt exist so got the page not found again.
Any advice would be grateful!
I am about to launch my site but I can't until I get this working. Does anyone know how to fix this??
This may be a very, very silly question but we've all done something similar and it never hurts to ask...
Your .htaccess file doesn't have the <?php and ?> tags, I trust. Presumably those are part of the code block on the forums, right?
Your .htaccess file doesn't have the <?php and ?> tags, I trust. Presumably those are part of the code block on the forums, right?
If i'm reading that correctly, you changed the directory that your install was originally in? If thats the case, check out this:http://www.concrete5.org/index.php?cID=22638...
It explains about moving a site, and in particular the settings in config/site.php. I'm thinking it may be something to do with define('BASE_URL' or define('DIR_REL'
Hope that helps.
It explains about moving a site, and in particular the settings in config/site.php. I'm thinking it may be something to do with define('BASE_URL' or define('DIR_REL'
Hope that helps.