.htaccess pretty urls for cmsms site and WordPress sub-site
-
Hi all,
I have a website that I build using cmsms. I have also build a shop within this site using WordPress.
so –
https://www.fourseasonsgolfcentre.co.uk = main site (cmsms)
https://www.fourseasonsgolfcentre.co.uk/shop = e-com shop (wordpress / wp-ecommerce)I have pretty urls working in my cmsms installation using the code below in my .htaccess file:
# Attempt to override some php settings, these settings may be helpful on some hosts if your # default configuration does not meet CMS's minimum requirements, and your host # has given your account appropriate permissions #php_value upload_max_filesize "10M" #php_value session_save_path "tmp/cache" #php_flag magic_quotes_gpc Off #php_flag register_globals Off #php_flag session.use_trans_sid Off # (this is important, so uncomment if your host permit) #Options -Indexes #ServerSignature Off # Options +FollowSymLinks # <IfModule mod_rewrite.c> RewriteEngine on # #Sub-dir e.g: /cmsms RewriteBase / # # 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] # 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] <ul> </ul> </IfModule>
WordPress is telling me to add the following to my .htaccess file:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /shop/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /shop/index.php [L] </IfModule>
the BIG question.
Is there any way of combining the two to get pretty urls working in both the cmsms site and the wordpress site?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘.htaccess pretty urls for cmsms site and WordPress sub-site’ is closed to new replies.