Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 133 results for
.htacces
- Page 1
need help with .htacces
Hardware and Software
Linux and Unix
12 Years Ago
by yli
hi there. i have this rule on my .
htacces
... it works but give me errors in errors_log. [CODE] RewriteRule ^([…
Converting Web.config to .htacces
Hardware and Software
Linux and Unix
6 Years Ago
by Steven_20
… you help me with convert the web.config to a .
htacces
file? <?xml version="1.0" encoding="…
.htacces
Hardware and Software
Linux and Unix
16 Years Ago
by apwade
I am trying to redirect a directory and all pages e.g. /shops/merchant1.htm to a generic file generic.htm using htaccess, does any have any ideas how to do this? Also the generic.htm contains php. I currently have hundreds of shops each with its own htm page, but i really want one generic.htm page that will cover all the shops, but driven by php …
Re: .htacces
Hardware and Software
Linux and Unix
16 Years Ago
by Belrog
How about a soft link? Just check the referrers in your php to decern between different shops.
htacces - rewrit url question
Programming
Web Development
11 Years Ago
by klemme
I was asked to help a friend to rewrite urls for a site he has a client. The link structure looks like this: <a href="http://sitename.dk/index.php?page=wisetrap">WiseTrap</a> // URL: sitename.dk/index.php?page=wisetrap Is it possible to keep the link structure like that, but after the link is clicked make it appear …
Re: htacces - rewrit url question
Programming
Web Development
11 Years Ago
by blocblue
Something like this should work: RewriteEngine On RewriteRule (.*) http://www.sitename.dk/index.php?page=$1 [QSA,L] Examples: /hello http://www.sitename.dk/index.php?page=hello /hello/world http://www.sitename.dk/index.php?page=hello/world /hello/world?foo=bar http://www.sitename.dk/index.php?page=hello/world&foo=bar
Re: htacces - rewrit url question
Programming
Web Development
11 Years Ago
by klemme
Thanks for your answer! It gave me this url: // I created a test page, and have links like this: <a href="index.php?page=grise">grise</a> <a href="index.php?page=hunde">hunde</a> <a href="index.php?page=fugle">fugle</a> <a href="index.php?page=…
Re: htacces - rewrit url question
Programming
Web Development
11 Years Ago
by blocblue
Sorry, I missed the bit about redirect to the new URL structure. RewriteEngine On RewriteRule ^index\.php?page=(.*) http://www.sitename.dk/$1 [R=301,QSA,L]
Re: htacces - rewrit url question
Programming
Web Development
11 Years Ago
by klemme
Hmm, that didnt do anything at all, guess im doing something wrong.. Could I do this, and not use any domain name in the rewrite: RewriteRule ^index\.php?page=(.*) index\.php/$1 [R=301,QSA,L] That is also not doing anything, but you get the idea?
Re: htacces - rewrit url question
Programming
Web Development
11 Years Ago
by diafol
Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]*)/*$ index.php?page=$1 [L] Just a rewrite not a redirect. So for that your links would have to be in the rewritten format too. <a href="/slanger/">slanger</a>
htacces file
Programming
Web Development
10 Years Ago
by everton.retweets
Hi everyone, I have a website that gives me the following url when viewing a users profile. website.com/index.php?a=profile&u=username I am trying to create a htaccess rule that will generate a friendly url like website.com/username The existing htaccess file is RewriteEngine on RewriteCond %{request_filename} -f …
Re: htacces file
Programming
Web Development
10 Years Ago
by mmcdonald
RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?a=$1&u=$2 [L] The original URL: http://website.com/index.php?a=profile&u=username The rewritten URL: http://website.com/profile/username Hope I've got it right, Michael
Re: htacces file
Programming
Web Development
10 Years Ago
by everton.retweets
Thanks @mmcdonald - I will give that ago...
Re: htacces file
Programming
Web Development
10 Years Ago
by everton.retweets
Hi, That didnt do the trick...
Re: htacces file
Programming
Web Development
10 Years Ago
by mmcdonald
Do you have any other rules that could interfere?
Re: htacces file
Programming
Web Development
10 Years Ago
by mmcdonald
# To make: # **The original URL:** http://website.com/index.php?a=profile&u=username **The rewritten URL:** http://website.com/a/profile/u/username.html **Use:** RewriteEngine On RewriteRule ^a/([^/]*)/u/([^/]*)\.html$ /index.php?a=$1&u=$2 [L] # To make: # **The original URL:** http://…
Re: htacces file
Programming
Web Development
10 Years Ago
by JorgeM
The first rule sample that mmcdonald provide is accurate. I quicly tested it myself even though it looked accurate. My experience with rewriting questions is that some people seem to be confused about the process... For example... if you type this in the URL: http://website.com/index.php?a=profile&u=username, That will **not** be …
Re: htacces file
Programming
Web Development
10 Years Ago
by mmcdonald
Thanks for testing and feeding back your results JorgeM. Explaining URL rewriting was a smart move. Michael
Re: htacces file
Programming
Web Development
10 Years Ago
by everton.retweets
Thanks gents, very much appreciated, I will have a look through the website too see if I can find any other rules. I am helping a friend out who had the website designed by a freelancer, who has suddenly gone missing after being paid.
Re: htacces file
Programming
Web Development
10 Years Ago
by mmcdonald
That's nothing new Everton, I always use something like Escrow when dealing with Freelancers - but I'm sorry to hear it. The above rewrite will work, perhaps it's being implemented incorrectly? It's been tested by JorgeM and he's a seasoned programmer. Either way, good luck!
Re: need help with .htacces
Hardware and Software
Linux and Unix
12 Years Ago
by mixplates
.htaccess files are read on every request, therefore changes made in these files take immediate effect as opposed to the main configuration file which requires the server to be restarted for the new settings to take effect. For servers with multiple users, as is common in shared web hosting plans, it is often desirable to allow individual users the…
Re: Converting Web.config to .htacces
Hardware and Software
Linux and Unix
6 Years Ago
by Steven_20
Push c:
Re: Converting Web.config to .htacces
Hardware and Software
Linux and Unix
6 Years Ago
by Steven_20
Help pls :o
Re: Converting Web.config to .htacces
Hardware and Software
Linux and Unix
6 Years Ago
by alc6379
There are a whole lot of projects that are attempting to do this. I suggest you try one of the options in this Google search: https://www.google.com/search?q=convert+web.config+to+htaccess&oq=con&aqs=chrome.3.69i57j69i61j69i60j69i59j69i65l2.1719j0j7&sourceid=chrome&ie=UTF-8 But, that's a pretty darn big web.config. I'm going …
Re: Converting Web.config to .htacces
Hardware and Software
Linux and Unix
6 Years Ago
by Subraa_1
https://stackoverflow.com/questions/39308553/converting-web-config-file-to-htaccess The above link should help!!
Load CSS problem
Digital Media
UI / UX Design
12 Years Ago
by fredy91
… still newbie in web developing here my problem, I using .
htacces
to change the url of my website the url have… problem the css file is not loaded here is my .
htacces
file [CODE] RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f…
.htaccess mod_rewrite to php login
Programming
Web Development
16 Years Ago
by squid44th
…;http://www.daniweb.com/forums/showthread.php?t=21052"].
htacces
thread[/URL] As of now I have no .htaccess in…
Symfony MOdule redirection
Programming
Web Development
15 Years Ago
by vssp
… seprate the login for public and user level? I tried .
htacces
its not working . Please advice. This Project have single controller…
.htaccess exclude subfolders from urls
Digital Media
UI / UX Design
14 Years Ago
by valonesal
…/file.php[/url] I know this can be done with .
htacces
i just cant figure out how. If anyone knows how…
htaccess not password protecting directory in a web server
Hardware and Software
Linux and Unix
14 Years Ago
by amish123
… im going wrong, .htpasswd file contains, this line, root:7rF2c3QN5gWeh .
htacces
contains the following, AuthUserFile /var/.htpasswd AuthType Basic AuthName "…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC