Thanks mccord42,
I have fixed the problem,
But I still want to implement the a URL processed with mod_rewrite to look like this.
http://yourdomainname.com/cmsms/parent_item/child_item
I have had a look at the user handbook and this page and still am in the shit
http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
I have already added most of the content to my site and I am not sure if this is a problem, as- should I have originally set this up before adding pages/content ?
The other thing is that I am adding cmsms to link together an existing site that has a forum and a blog
My website url is - crimecasefiles.com
this url is set to redirect to my forum - crimecasefiles.com/forum
When I have finished working on my cmsms content I want it to use crimecasefiles.com (for my home page)
So when I added cmsms I use
http://www.crimecasefiles.com/index.php? so that I could work on my site but not really have it open to public.
In my .htaccess file I have this in it for the other areas of my website.
Code: Select all
RewriteEngine on
#RewriteEngine On
#RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
# BEGIN WordPress
# END WordPress
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 87.250.254.24
RewriteCond %{HTTP_HOST} ^crimecasefiles.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.crimecasefiles.com$
RewriteRule ^/?$ "http\:\/\/www\.crimecasefiles\.com\/forum" [R=301,L]
Options +FollowSymLinks
RewriteEngine on
can I add to this under existing content ?
and is this what I add ?
Code: Select all
Options +FollowSymLinks
RewriteEngine on
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L,NE]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA,NE]
Then the last thing I need to do is edit config.php
This is how it looks now
Code: Select all
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'none';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
do I change
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '/';
Do I need
$config['query_var'] = 'page';
Thanks, I'm almost there ( I think)
there seems to be a few different examples of how to do this but they are different.