Title: Website integration  with Permalink problem
Last modified: August 19, 2016

---

# Website integration with Permalink problem

 *  [chocobo2k](https://wordpress.org/support/users/chocobo2k/)
 * (@chocobo2k)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/website-integration-with-permalink-problem/)
 * Hi, I am using WP 2.6.3
 * I already have a website driven by template for the top bar that includes drop
   down menus for navigation and external CSS for controlling the design. I want
   to add WP to my website. I tried to things that worked for me so far but only
   using the “UGLY” links like ?p=10 while I want to get /year/month/day/post
 * I tried those two:
    1. I modified the header.php for WP to include all code including
   javascripts but it was pain to do so. 2. I kept my index.php but in the mainContent
   div I put <?php include(“index-wp.php”); ?>
 * This was much much easier than the previous method.
 * The problem starts when activating Permalink. I am using mod_rewrite.so in Apache.
   The main website still looks ok but once you click on a post I lose my CSS and
   javascripting. The reason is I am using relative linking for css and .js files
   
   I tried to solve this issue by including two lines for every css .js but with
   different locations for ex: “css/main.css” and “../../../css.main.css” It worked
   but I found out that now all my top bar links for main website are trying to 
   load from new location. For ex: website/year/month/day/post/tour.php instead 
   of just website/tour.php
 * Can someone direct me on what I need to do in order to fix this problem? [I am
   a designer not a scripter]
 * Thanks

The topic ‘Website integration with Permalink problem’ is closed to new replies.

## Tags

 * [integration](https://wordpress.org/support/topic-tag/integration/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [chocobo2k](https://wordpress.org/support/users/chocobo2k/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/website-integration-with-permalink-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
