Problems, need help? Have a tip or advice? Post it here.
9 posts Page 1 of 1
I changed the extension of my html page to .php . but in browser when I type services.php page it goes to services/ . And shows 404 not found
Hi,

From the description of the problem, it appears that 'prettyURLs' are at play.

If you have indeed turned on prettyURLs for your Couch managed site, please make sure to regenerate a new .htaccess file (using the gen_htaccess.php utility mentioned in the docs). This will add an entry in the .htaccess file for the new template.

It is preferred to keep prettyURLs off while the site is still in development stage and templates are being added/removed.

Does this help?
KK wrote: Hi,

From the description of the problem, it appears that 'prettyURLs' are at play.

If you have indeed turned on prettyURLs for your Couch managed site, please make sure to regenerate a new .htaccess file (using the gen_htaccess.php utility mentioned in the docs). This will add an entry in the .htaccess file for the new template.

It is preferred to keep prettyURLs off while the site is still in development stage and templates are being added/removed.

Does this help?




Hii ,

It helped. Thanks a lot..Page is coming up now..But the stylesheets and images are pointed to different location now.This is my page http://alyraqhdecorarion.ae/services/.

Original html is http://alyraqhdecorarion.ae/services.html
You need to use <cms:show k_site_link /> with your styles, relative URLs don't work with PrettyURLs.

Code: Select all
<link rel="stylesheet" href="<cms:show k_site_link />/css/font.css" type="text/css">


Add this to each style/script include and it should work fine.
Image
Bartonsweb wrote: You need to use <cms:show k_site_link /> with your styles, relative URLs don't work with PrettyURLs.

Code: Select all
<link rel="stylesheet" href="<cms:show k_site_link />/css/font.css" type="text/css">


Add this to each style/script include and it should work fine.



Hii,

Thanks a ton for the help.. I changed all the style/scripts to absolute..The links areworking fine in browser..But the style/scripts are still not working on page http://alyraqhdecorarion.ae/services/
Please help me
A view-source of the web page you referred to shows this -
Code: Select all
      <!-- CSS StyleSheets -->
      <link rel="stylesheet" href="css/font.css" type="text/css">
      <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css">
      <link rel="stylesheet" href="css/animate.css" type="text/css">
      <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css">
      <link rel="stylesheet" href="css/slick.css" type="text/css">
      <link rel="stylesheet" href="rs-plugin/css/settings.css" type="text/css">
      <link rel="stylesheet" href="css/style.css" type="text/css">
      <link rel="stylesheet" href="css/responsive.css" type="text/css">

      <!-- Gallery CSS -->
      <link rel="stylesheet" href="css/gallery.css">
      <!-- End of Gallery CSS -->

      
      <link rel="stylesheet" href="css/skins/default.css" type="text/css">

      <!-- RTL -->
      <link rel="stylesheet" href="css/ltr.css" type="text/css">

Clearly none of the links above are absolute.

Please make them absolute the way @Bartonsweb suggested or make them absolute by prepending them with a '/' e.g.
Code: Select all
<link rel="stylesheet" href="/css/skins/default.css" type="text/css">
Also links can be left as is with addition of base tag
http://www.w3schools.com/tags/tag_base.asp
Code: Select all
<head>
   <base href="<cms:show k_site_link />" >
</head>

Appending k_site_link to ALL links is thus unnecessary job while converting to Couch from html source.
trendoman wrote: Also links can be left as is with addition of base tag
http://www.w3schools.com/tags/tag_base.asp
Code: Select all
<head>
   <base href="<cms:show k_site_link />" >
</head>

Appending k_site_link to ALL links is thus unnecessary job while converting to Couch from html source.




Hii,

It worked with that 1 line of code..Thanks a ton..it was such a brilliant solution for me
anjuthomas88 wrote: It worked with that 1 line of code..Thanks a ton..it was such a brilliant solution for me

You are welcome :D
9 posts Page 1 of 1
cron