By creativeideas on
Hi All,
http://1dash1.com/ please check out this link i made changes in .htaccess file my front page is running but i stuked now my admin is not running please click on the admin link and plz help to sort my problem its really urjent
Comments
the page.tpl
It is the problem in ur page.tpl o f ur theme.... sure..
just go in ur page.tpl and remove the exit or debug .. wher u might have checked the browser...
Cheers
after thi sline in page.tpl
after thi sline in page.tpl there may be problem.. its nothing to do with .htaccess
Cheers
hi sending u page.tpl file
hi thanks for ur reply i m sending my tpl file plz have a look....
#sidebar-right {position:relative;left:-1px;} body {background-position: 0 242px;} #header {min-width:950px;} #primary {min-width:950px;} #main,#sidebar-left,#sidebar-right { _display: inline; /* display inline or double your floated margin! [1] */ _overflow: hidden; /* in ie6, overflow auto is broken [2] and so is overflow visible [3] */ _overflow-y: visible; }print $language->language " xml:lang="
print $language->language">print $head_titleprint $headprint $stylesif ($right);else echo "<style type=\"text/css\" media=\"all\">#main {margin-right:0;}</style>";if ($left);else echo "<style type=\"text/css\" media=\"all\">#main {margin-left:0;}</style>";if ($right);elseif($left);else echo "<style type=\"text/css\" media=\"all\">#main {margin:0;}</style>";
//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** May 2nd, 08'- Script rewritten and updated to 2.0. //** June 12th, 08'- Script updated to v 2.3, which adds the following features: //1) Changed behavior of script to actually collapse the previous content when the active one is shown, instead of just tucking it underneath the later. //2) Added setting to reveal a content either via "click" or "mouseover" of pagination links (default is former). //3) Added public function for jumping to a particular slide within a Featured Content instance using an arbitrary link, for example. //** July 11th, 08'- Script updated to v 2.4: //1) Added ability to select a particular slide when the page first loads using a URL parameter (ie: mypage.htm?myslider=4 to select 4th slide in "myslider") //2) Fixed bug where the first slide disappears when the mouse clicks or mouses over it when page first loads. var featuredcontentslider={ //3 variables below you can customize if desired: ajaxloadingmsg: 'print $scriptsprint $body_classes; ">
print $headerif ($logo) {print $front_page " title="print t('Home')">print t('Home')" />}if ($search_box) :print $search_box
print $front_page " title="endif;print t('Home')">print $site_nameif ($site_slogan) {print $site_slogan}echo "<em><a href='/node/3' style=' border:0;'>Contact Us</a> <a href='#'>Careers</a></em> <br/><p><span>Call Us:</span> 8888 88 888</p>"if (isset($primary_links)) {print preg_replace('/<a (.*?)>(.*?)<\\/a>/i','<a \\1><span>\\2</span></a>',theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')));}if ($left) {print $left}if ($mission) {print $mission}print $titleprint $breadcrumbif ($tabs){print $tabs}if (isset($primary_links)) {print preg_replace('/<a (.*?)>(.*?)<\\/a>/i','<a \\1><span>\\2</span></a>',theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')));}Go back to 1st slide
print $helpif ($show_messages && $messages) print $messages;print $content;print $feed_icons;if ($right):print $rightendif;print $footer_message;print $closuretry removing this
<?php
print preg_replace('/(.*?)<\\/a>/i','\\2',theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')));
?
try removing this line in tpl file/ and if u thing it is the error of .htaccess replace it...
Cheers
hi friend
i tried to make all the changes in .htaccess file if i used the default .htaccess file my site gave 500 server error if i remove it completely page runs well but admin is not working at al...now when i make the changes my links started working but my admin is creating problem as u see on the running site....can you provide me some other idea..
replace with this n try...........
print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist'))Cheers
replace the ..htaccess file
Replace th e.htaccess file and check the Rewritebase in it... if ur drupal is after public_html it should be Rewrite Base /~user/drupal
Cheers
hi friend
i tried this but same problem occur http://www.1dash1.com/
this is my .htaccess file
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
Order deny,allow
Deny from all
# Set some options.
##Options -Indexes
##Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1
##
## php_value magic_quotes_gpc 0
## php_value register_globals 0
## php_value session.auto_start 0
##
# Reduce the time dynamically generated pages are cache-able.
ExpiresByType text/html A1
# Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without the prefix www.
# you can use one of the following settings to force user to use only one option:
#
# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]
#
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
# RewriteRule .* http://example.com/ [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# $Id: .htaccess,v 1.73 2006/04/14 09:08:26 killes Exp $
try replacing htacccess
try replacing htacccess file and theme folder.. surely u should get the link working of admin
Cheers
hi friend
if i delete my theme folder how my theme get worked